From 500078714411487af00161e01bd7e0b5efdc3414 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 07 八月 2025 13:32:32 +0800
Subject: [PATCH] add:热门景点
---
main.js | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/main.js b/main.js
index 226f769..56c3820 100644
--- a/main.js
+++ b/main.js
@@ -4,20 +4,9 @@
import { createPinia } from 'pinia'
import message from './plugins/message'
import http from './plugins/http.js'
+import storage from './plugins/storage.js'
// import store from './store/index.js'
-// #ifndef VUE3
-import Vue from 'vue'
-import './uni.promisify.adaptor'
-Vue.config.productionTip = false
-App.mpType = 'app'
-const app = new Vue({
- ...App
-})
-app.$mount()
-// #endif
-
-// #ifdef VUE3
import {
createSSRApp
} from 'vue'
@@ -53,6 +42,7 @@
// 全局属性
app.config.globalProperties.$message = message
app.config.globalProperties.$http = http
+ app.config.globalProperties.$storage = storage
// app.config.globalProperties.$store = store
// uni.$u.setConfig({
@@ -99,4 +89,3 @@
app
}
}
-// #endif
\ No newline at end of file
--
Gitblit v1.9.3