Commit 65af4f96 by 无尘

fix: 修改应用菜单

parent 6efa576d
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘
* @LastEditTime: 2020-09-18 15:03:02
* @LastEditTime: 2020-09-18 15:08:09
*/
import _import from './_import.js';
......@@ -174,7 +174,6 @@ export const routes = [
// 企业应用
path: '/apps',
name: '企业应用',
redirect: 'my-customer',
component: _import('apps', 'index'),
children: [
{
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-09-18 15:01:06
* @LastEditTime: 2020-09-18 15:09:06
-->
<template>
<div class="enterprise-wrap">
......@@ -87,7 +87,7 @@ export default {
if (res.code == '0000') {
// 返回空数组
if (!res.result || !res.result.length) {
that.router.back();
that.router.push('/app-list');
return false;
}
// 这里考虑有子级情况,后端接口返回是一个一个的菜单,不是父子级
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment