mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 19:07:25 +08:00
升级Vue3,iView替换ElementPlus
- 删除babel配置、更新依赖与入口初始化 - 全量替换UI组件、样式适配,新增迁移文档与标签/过滤器自动化替换脚本
This commit is contained in:
@@ -1,22 +1,20 @@
|
||||
import Vue from 'vue';
|
||||
import Vuex from 'vuex';
|
||||
import * as actions from './actions';
|
||||
import * as mutations from './mutations';
|
||||
import * as getters from './getters';
|
||||
import storage from '@/plugins/storage.js'
|
||||
import { createStore } from "vuex";
|
||||
import * as actions from "./actions";
|
||||
import * as mutations from "./mutations";
|
||||
import * as getters from "./getters";
|
||||
import storage from "@/plugins/storage.js";
|
||||
|
||||
Vue.use(Vuex);
|
||||
|
||||
export default new Vuex.Store({
|
||||
export default createStore({
|
||||
state: {
|
||||
navList: [], // 首页快捷导航
|
||||
cartNum: storage.getItem('cartNum') || 0,
|
||||
logoImg: storage.getItem('logoImg') || require('@/assets/images/logo2.png'),
|
||||
siteName:storage.getItem('siteName')|| 'lilishop',
|
||||
hotWordsList: storage.getItem('hotWordsList'),
|
||||
category: JSON.parse(localStorage.getItem('category'))
|
||||
navList: [],
|
||||
cartNum: storage.getItem("cartNum") || 0,
|
||||
logoImg:
|
||||
storage.getItem("logoImg") || require("@/assets/images/logo2.png"),
|
||||
siteName: storage.getItem("siteName") || "lilishop",
|
||||
hotWordsList: storage.getItem("hotWordsList"),
|
||||
category: JSON.parse(localStorage.getItem("category")),
|
||||
},
|
||||
getters,
|
||||
actions,
|
||||
mutations
|
||||
mutations,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user