From 4eef04aa662cf4f8fbde60ca99c0011b6203c558 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期三, 11 九月 2024 14:26:44 +0800 Subject: [PATCH] 增加管理员等功能 --- src/store/index.js | 58 ---------------------------------------------------------- 1 files changed, 0 insertions(+), 58 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 339b47d..76a5982 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -5,75 +5,17 @@ const store = createStore({ // 涓轰簡涓嶅拰椤甸潰鎴栫粍浠剁殑data涓殑閫犳垚娣锋穯锛宻tate涓殑鍙橀噺鍓嶉潰寤鸿鍔犱笂$绗﹀彿 state: { - config: { - shopLogo: "/static/images/logo/logo.png" - }, // 搴楅摵閰嶇疆淇℃伅 //娣诲姞涓�涓墠绔」鐩腑鐨勫浘鐗囧湴鍧� - orderTab: 0, // 閫変腑鐨勮鍗晅ab椤� - scene: 0, // 閫変腑鐨勮鍗晅ab椤� - redirectPage: '', - uuid: '', //褰撳墠瀹㈡埛绔� - searchStyle: '', - sessionAuthId: '', //寰俊缂撳瓨鎺堟潈淇℃伅 - searchFixed: false, //鎼滅储妗嗘牱寮� - showLoginTip: false, //鏄剧ず鐧诲綍妗� - hasLogin: false, //瀛樺偍鐢ㄦ埛褰撳墠鏄惁鐧诲綍锛屼綔涓哄垏鎹㈢壒鏁堜娇鐢� - userShip: {}, //鍦板尯淇℃伅 userInfo: {}, //鐢ㄦ埛淇℃伅瀛樺偍 - invoice: {}, //鍙戠エ淇℃伅 - deliveryData: {}, //娲鹃�佽鍗曡鎯� }, mutations: { - config(state, payload) { - state.config = payload - }, - orderTab(state, tab) { - state.orderTab = tab - }, - scene(state, tab) { - state.scene = tab - }, - redirect(state, payload) { - state.redirectPage = payload.page - }, - searchStyle(state, style) { - state.searchStyle = style - }, - sessionAuthId(state, payload) { - state.sessionAuthId = payload - }, - searchFixed(state, payload) { - state.searchFixed = payload - }, - showLoginTip(state, payload) { - state.showLoginTip = payload - }, - hasLogin(state, payload) { - state.hasLogin = payload - }, - userShip(state, userShip) { - state.userShip = userShip - }, userInfo(state, userInfo) { state.userInfo = userInfo }, - invoice(state, invoice) { - state.invoice = invoice - }, - deliveryData(state, data) { - state.deliveryData = data - } }, actions: { - }, getters: { - shopConfig: state => state.config, - scene: state => state.scene, userInfo: state => state.userInfo, - uuid: state => state.uuid, - hasLogin: state => state.hasLogin, - sessionAuthId: state => state.sessionAuthId, - deliveryData: state => state.deliveryData } }) -- Gitblit v1.9.1