|
@@ -7,7 +7,7 @@ import website from '@/config/website'
|
|
|
import { loginByUsername, loginBySocial, getUserInfo, logout, refreshToken, getButtons } from '@/api/user'
|
|
|
import { getByRoute, getTenantMenuByTenantIdAndRoleId, allByRole } from '@/api/lesseeLogin'
|
|
|
import { getRoutes } from '@/api/system/menu'
|
|
|
-import { getList, getDictToWeb, getConstantAll } from '@/api/system/dict'
|
|
|
+import { getList, getDictToWeb } from '@/api/system/dict'
|
|
|
import md5 from 'js-md5'
|
|
|
import { getUserAll } from '@/api/activiti/taskSetting'
|
|
|
|
|
@@ -99,13 +99,6 @@ const user = {
|
|
|
.catch((error) => {
|
|
|
reject(error)
|
|
|
})
|
|
|
- getConstantAll()
|
|
|
- .then((res) => {
|
|
|
- commit('SET_CONSTANT_ALL', res.data.data)
|
|
|
- })
|
|
|
- .catch((error) => {
|
|
|
- reject(error)
|
|
|
- })
|
|
|
})
|
|
|
},
|
|
|
// 获取所有用户
|
|
@@ -555,10 +548,6 @@ const user = {
|
|
|
state.dictTenantData = dictTenantData
|
|
|
setStore({ name: 'dictTenantData', content: state.dictTenantData })
|
|
|
},
|
|
|
- SET_CONSTANT_ALL: (state, constantData) => {
|
|
|
- state.constantData = constantData
|
|
|
- setStore({ name: 'constantData', content: state.constantData })
|
|
|
- },
|
|
|
SET_MENU_TOP: (state, menuTop) => {
|
|
|
state.menuTop = menuTop
|
|
|
setStore({ name: 'menuTop', content: state.menuTop })
|