fix: bug#11262

This commit is contained in:
xieyonghong 2023-04-04 14:03:34 +08:00
parent 132aa4c920
commit 0a93fe096d
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ router.beforeEach((to, from, next) => {
const userInfo = useUserInfo()
const system = useSystem()
const menu = useMenuStore()
if (!menu.siderMenus.length && !filterPath.includes(to.path)) {
if (!Object.keys(menu.menus).length && !filterPath.includes(to.path)) {
userInfo.getUserInfo().then(() => {
system.getSystemVersion().then((menuData: any[]) => {
menuData.forEach(r => {

View File

@ -46,7 +46,7 @@ export const MESSAGE_SUBSCRIBE_MENU_DATA = {
permissions: [
{
permission: 'alarm-config',
action: ['query']
actions: ['query']
}
]
}

View File

@ -90,9 +90,9 @@ export default defineConfig(({ mode}) => {
proxy: {
[env.VITE_APP_BASE_API]: {
target: 'http://192.168.32.226:8844',
// target: 'http://192.168.32.226:8844',
// target: 'http://192.168.32.244:8881',
// target: 'http://120.77.179.54:8844', // 120测试
target: 'http://120.77.179.54:8844', // 120测试
// target: 'http://192.168.33.46:8844', // 本地开发环境
ws: 'ws://192.168.33.46:8844',
changeOrigin: true,