添加功能
This commit is contained in:
7
main.js
7
main.js
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Date: 2025-10-23 14:48:48
|
||||
* @LastEditors: shirlwang
|
||||
* @LastEditTime: 2025-10-23 15:02:07
|
||||
* @LastEditTime: 2025-10-31 16:51:55
|
||||
*/
|
||||
import App from './App'
|
||||
import * as Pinia from 'pinia'
|
||||
@@ -36,6 +36,8 @@ import { createSSRApp } from 'vue'
|
||||
import uniIcons from './uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
|
||||
import uniPopup from './uni_modules/uni-popup/components/uni-popup/uni-popup.vue'
|
||||
|
||||
|
||||
import storeRc from './utilsRc/store/index.js'
|
||||
// const foldFeature = window.visualViewport && 'segments' in window.visualViewport
|
||||
// console.log('是否支持多段屏幕:', foldFeature)
|
||||
|
||||
@@ -106,12 +108,15 @@ export function createApp() {
|
||||
|
||||
// 先注册Pinia
|
||||
app.use(Pinia.createPinia());
|
||||
// 注册vuex
|
||||
app.use(storeRc);
|
||||
|
||||
// 注册其他插件
|
||||
app.use(SelectPopupPlugin);
|
||||
|
||||
// Vue 3 中挂载全局属性 - 字典获取方法
|
||||
app.config.globalProperties.$getDict = getDict;
|
||||
app.config.globalProperties.$store = storeRc;
|
||||
app.config.globalProperties.$getDictSelectOption = async (dictType, isDigital = false, forceRefresh = false) => {
|
||||
const dictData = await getDict(dictType, forceRefresh);
|
||||
return dictData.map(item => ({
|
||||
|
||||
Reference in New Issue
Block a user