From 21896f00e9c0a33018a46c427ea97d0993ca469b Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Wed, 20 Aug 2025 16:23:22 +0800
Subject: [PATCH] 1
---
src/store/index.js | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/store/index.js b/src/store/index.js
index cc6c409..178eb2b 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,6 +1,8 @@
import { getUserInfodata } from "@/axios/api";
import Vue from "vue";
import Vuex from "vuex";
+import { Toast } from 'vant';
+import i18n from "@/locales/index.js";
// import getters from './getters'
// import actions from './actions'
// import mutations from './mutations'
@@ -30,7 +32,7 @@
indexDisplay: false,
kcStockDisplay: false,
stockDisplay: false
- }
+ },
};
export default new Vuex.Store({
@@ -38,7 +40,7 @@
actions: {
async setUseInfo({ commit }) {
let data = await getUserInfodata();
- if (data.status === 0) {
+ if (data.status == 0) {
commit("SET_USE_INFO", data.data);
} else {
commit("elAlertShow", {
@@ -46,6 +48,10 @@
elAlertText: data.msg
});
}
+ },
+ // 触发客服提示
+ CustomerService(){
+ Toast(i18n.t('kf1'));
}
},
mutations: {
--
Gitblit v1.9.3