diff --git a/package-lock.json b/package-lock.json index 3b8be55..83295ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "axios": "^1.6.2", "echarts": "^5.4.3", "element-plus": "^2.4.4", + "mitt": "^3.0.1", "pinia": "^2.1.7", "postcss-pxtorem": "^5.1.1", "vue": "^3.3.8", @@ -2464,6 +2465,11 @@ "node": ">= 0.6" } }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==" + }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", @@ -4880,6 +4886,11 @@ "mime-db": "1.52.0" } }, + "mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==" + }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", diff --git a/package.json b/package.json index 8f659fc..83aad56 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "axios": "^1.6.2", "echarts": "^5.4.3", "element-plus": "^2.4.4", + "mitt": "^3.0.1", "pinia": "^2.1.7", "postcss-pxtorem": "^5.1.1", "vue": "^3.3.8", diff --git a/src/api.js b/src/api.js index ba94c72..6181012 100644 --- a/src/api.js +++ b/src/api.js @@ -8,7 +8,8 @@ let expire = localStorage.getItem("TRADE_USER") ? JSON.parse(localStorage.getIte // 创建axios 实例 const instacne = axios.create({ - baseURL: "http://192.168.1.22:8545", + // baseURL: "http://192.168.1.22:8545", + baseURL: "https://multi-store.lihaink", // baseURL: "https://shop.lihaink.cn/", timeout: 30000, }); diff --git a/src/components/header.vue b/src/components/header.vue index 4b402df..913dfb3 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -51,10 +51,13 @@ src="/static/index/SHXZ.png" alt=""> --> +
+ {{ headerTitle }} +
{{ area }} + src="/static/index/DW.png" alt=""> {{ area }}
@@ -70,8 +73,8 @@
-
+
@@ -84,13 +87,14 @@ - -