mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-11-12 20:08:59 +08:00
refactor: 统一组件导入与消息提示方式
- 将多个组件中的 require 替换为 import,提升代码一致性。 - 更新消息提示方式,使用统一的 Message 和 Modal 组件,增强用户体验。 - 调整部分组件的样式和逻辑,确保界面一致性与可读性。
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
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";
|
||||
import defaultLogo from "@/assets/images/logo2.png";
|
||||
|
||||
export default createStore({
|
||||
state: {
|
||||
navList: [],
|
||||
cartNum: storage.getItem("cartNum") || 0,
|
||||
logoImg:
|
||||
storage.getItem("logoImg") || require("@/assets/images/logo2.png"),
|
||||
logoImg: storage.getItem("logoImg") || defaultLogo,
|
||||
siteName: storage.getItem("siteName") || "lilishop",
|
||||
hotWordsList: storage.getItem("hotWordsList"),
|
||||
category: (() => {
|
||||
@@ -21,7 +20,6 @@ export default createStore({
|
||||
}
|
||||
})(),
|
||||
},
|
||||
getters,
|
||||
actions,
|
||||
mutations,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user