diff --git a/main.js b/main.js index 5adb1ef..108fe74 100644 --- a/main.js +++ b/main.js @@ -2,23 +2,28 @@ import App from './App' // #ifndef VUE3 import Vue from 'vue' -import uView from "uview-ui"; import './uni.promisify.adaptor' +// main.js +import uView from "uview-ui"; +import store from "@/store/index.js" +Vue.use(uView); Vue.config.productionTip = false App.mpType = 'app' -Vue.use(uView); const app = new Vue({ - ...App + store, + ...App }) app.$mount() // #endif // #ifdef VUE3 -import { createSSRApp } from 'vue' +import { + createSSRApp +} from 'vue' export function createApp() { - const app = createSSRApp(App) - return { - app - } + const app = createSSRApp(App) + return { + app + } } -// #endif \ No newline at end of file +// #endif diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue index 268fc3b..715f10e 100644 --- a/pages/homepage/homepage.vue +++ b/pages/homepage/homepage.vue @@ -1,10 +1,9 @@