From 13bf747f7a437b5008c4e7ff1b130d8b31f7b081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Wed, 20 Dec 2023 14:12:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 23 +++-- pages/homepage/homepage.vue | 93 +++---------------- pages/login/login.vue | 14 +-- pages/myinformation/myinformation.vue | 6 +- pages/seekadvicefrom/seekadvicefrom.vue | 115 +++++++++--------------- store/index.js | 69 ++++++++++++++ 6 files changed, 151 insertions(+), 169 deletions(-) create mode 100644 store/index.js 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 @@