|
|
@@ -1,5 +1,4 @@
|
|
|
import { getMobileUserInfo, getDictOption } from '@/api/index';
|
|
|
-import { selectAllocationPermission } from '@/api/week';
|
|
|
|
|
|
const user = {
|
|
|
state: {
|
|
|
@@ -36,7 +35,11 @@ const user = {
|
|
|
localStorage.setItem('deptLevel', res.data.depts[0].deptLevel);
|
|
|
localStorage.setItem('userId', res.data.userId);
|
|
|
localStorage.setItem('deptIds', JSON.stringify(res.data.deptIds));
|
|
|
- resolve();
|
|
|
+ // 门店类型
|
|
|
+ getDictOption({}, 'sfa_store_type').then((res) => {
|
|
|
+ commit('SET_STORE_TYPE', res.data);
|
|
|
+ resolve();
|
|
|
+ });
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
reject(error);
|
|
|
@@ -47,12 +50,6 @@ const user = {
|
|
|
setActivaTypeStore({ commit }, value) {
|
|
|
commit('SET_ACTIVA_TYPE_STORE', value);
|
|
|
},
|
|
|
- // 门店类型
|
|
|
- setStoreType({ commit }, value) {
|
|
|
- getDictOption({}, 'sfa_store_type').then((res) => {
|
|
|
- commit('SET_STORE_TYPE', res.data);
|
|
|
- });
|
|
|
- },
|
|
|
},
|
|
|
};
|
|
|
|