Browse Source

Signed-off-by: Caner <40012261+Canees@users.noreply.github.com>

Caner 3 years ago
parent
commit
ef26d2bf8d
3 changed files with 5 additions and 11 deletions
  1. 4 4
      src/pages/index/main.js
  2. 0 5
      src/pages/index/store/index.js
  3. 1 2
      src/pages/pageB/main.js

+ 4 - 4
src/pages/index/main.js

@@ -1,10 +1,10 @@
 import { createApp } from 'vue'
 import App from './App.vue'
 import router from './router'
-import store from './store'
+import { createPinia } from 'pinia'
+const store = createPinia()
 
 const app = createApp(App)
 app.use(router)
-app.use(store)
-
-app.mount('#app')
+  .use(store)
+  .mount('#app')

+ 0 - 5
src/pages/index/store/index.js

@@ -1,5 +0,0 @@
-import { createPinia } from 'pinia'
-
-const store = createPinia()
-
-export default store

+ 1 - 2
src/pages/pageB/main.js

@@ -3,5 +3,4 @@ import App from './App.vue'
 import router from './router'
 const app = createApp(App)
 app.use(router)
-
-app.mount('#app')
+  .mount('#app')