Node.js/nuxt/asyncData:修订间差异
来自康健生活
| 第7行: | 第7行: | ||
// todo | // todo | ||
},</syntaxhighlight> | },</syntaxhighlight> | ||
{{leftrightflex| | |||
* $axios: (...) | * $axios: (...) | ||
* $config: (...) | * $config: (...) | ||
| 第29行: | 第30行: | ||
* _errored: (...) | * _errored: (...) | ||
* _redirected: (...) | * _redirected: (...) | ||
| | |||
* $axios: ƒ wrap() | |||
* $config: {} | |||
* $cookies: {parseJSON: true, set: ƒ, setAll: ƒ, get: ƒ, getAll: ƒ, …} | |||
* $errorHandler: ƒ (err) | |||
* app: {head: {…}, store: Store, router: VueRouter, nuxt: {…}, render: ƒ, …} | |||
* base: "/" | |||
* env: {host: {…}, target: "development", SECRET: "kangkk"} | |||
* error: ƒ () | |||
* from: {name: "/down/detail", meta: Array(1), path: "/down/detail/22.html", hash: "#93", query: {…}, …} | |||
* isDev: true | |||
* isHMR: false | |||
* isStatic: false | |||
* next: ƒ () | |||
* nuxtState: {layout: "default", data: Array(1), fetch: Array(0), error: null, state: {…}, …} | |||
* params: {id: "22", bid: 0, title: "嘻嘻嘻", image: "http://static.askgo.cn/resource/intro/img/093fb01727e34dbaa230882edfbf4f1e.png"} | |||
* payload: undefined | |||
* query: {} | |||
* redirect: ƒ (status, path, query) | |||
* route: {name: "/pay/statement", meta: Array(1), path: "/pay/statement", hash: "", query: {…}, …} | |||
* store: Store {_committing: false, _actions: {…}, _actionSubscribers: Array(1), _mutations: {…}, _wrappedGetters: {…}, …} | |||
* _errored: true | |||
* _redirected: false | |||
* __proto__: Object | |||
}} | |||
==== 详细 ==== | ==== 详细 ==== | ||
---> [[/asyncdata详细内容|asyncdata详细内容]] | ---> [[/asyncdata详细内容|asyncdata详细内容]] | ||