We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d94ce9 commit 7e643ffCopy full SHA for 7e643ff
src/api/application-config.md
@@ -3,7 +3,7 @@
3
Every Vue application exposes a `config` object that contains the configuration settings for that application:
4
5
```js
6
-const app = Vue.createApp({})
+const app = createApp({})
7
8
console.log(app.config)
9
```
@@ -73,7 +73,7 @@ app.component('child-component', {
73
Vue.prototype.$http = () => {}
74
75
// After
76
77
app.config.globalProperties.$http = () => {}
78
79
@@ -107,7 +107,7 @@ This config option is only respected when using the runtime compiler. If you are
107
- **使用方法:**
108
109
110
-const app = Vue.createApp({
+const app = createApp({
111
mounted() {
112
console.log(this.$options.hello)
113
}
0 commit comments