refactor:项目升级Vue3+uView Plus

- 改造入口文件、全量替换组件引入
- 过滤器迁移混入,更新忽略配置,新增迁移文档
This commit is contained in:
lifenlong
2026-06-06 22:51:10 +08:00
parent d5663cfb4d
commit f4337fd030
269 changed files with 1956 additions and 42350 deletions

View File

@@ -1,39 +1,34 @@
import Vue from "vue";
import Vuex from "vuex";
import storage from "@/utils/storage";
import { createStore } from 'vuex'
import storage from '@/utils/storage'
Vue.use(Vuex);
const store = new Vuex.Store({
const store = createStore({
state: {
isShowToast:false, // 是否在展示Toast中
remark:[], //填写订单备注
shareLink:"", //分享链接
verificationKey: "", //获取key表示验证通过
distributionId:"", //分销员Id 如果当前账户从未登录过时记录
isShowToast: false,
remark: [],
shareLink: '',
verificationKey: '',
distributionId: '',
hasLogin: storage.getHasLogin(),
userInfo: storage.getUserInfo(),
uuid: storage.getUuid(),
token: "",
token: ''
},
mutations: {
login(state, userInfo) {
state.userInfo = userInfo || {};
state.userInfo = userInfo || {}
state.userName =
userInfo.Name || userInfo.Nickname || userInfo.Username || "匿名用户";
state.hasLogin = true;
userInfo.Name || userInfo.Nickname || userInfo.Username || '匿名用户'
state.hasLogin = true
},
logout(state) {
state.userName = "";
state.hasLogin = false;
state.userName = ''
state.hasLogin = false
},
// 设置填写订单中备注
setRemark(state, remark) {
state.remark = remark;
state.remark = remark
}
},
actions: {},
});
actions: {}
})
export default store;
export default store