diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue
index bdf557c..1f970c9 100644
--- a/src/pages/account/login/index.vue
+++ b/src/pages/account/login/index.vue
@@ -158,7 +158,7 @@ export default {
this.setCustomer(res.customer);
res.customerName && this.setCustomerName(res.customerName);
// let redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : "/index";
- this.$router.replace('/index');
+ this.$router.replace('/station');
}).catch(res => {});
},
phoneCountdown() {
diff --git a/src/pages/achievement/list/index.vue b/src/pages/achievement/list/index.vue
index f731393..e4eab4d 100644
--- a/src/pages/achievement/list/index.vue
+++ b/src/pages/achievement/list/index.vue
@@ -59,7 +59,7 @@
@@ -88,9 +88,9 @@
- 成绩管理
- 删除
- 删除
+ 成绩管理
+ 删除
+ 删除
diff --git a/src/pages/assessment/list/index.vue b/src/pages/assessment/list/index.vue
index 3a324a0..c8c8d30 100644
--- a/src/pages/assessment/list/index.vue
+++ b/src/pages/assessment/list/index.vue
@@ -103,7 +103,7 @@
修改
- 提前结束
+ 提前结束
查看成绩
diff --git a/src/pages/course/contentSettings/index.vue b/src/pages/course/contentSettings/index.vue
index aaf93d9..bc9b962 100644
--- a/src/pages/course/contentSettings/index.vue
+++ b/src/pages/course/contentSettings/index.vue
@@ -12,8 +12,8 @@
内容设置
- 添加章节
- 编辑顺序
+ 添加章节
+ 编辑顺序
批量移动
@@ -29,9 +29,9 @@
{{ chapter.name }}
- 修改章节名称
- 添加小节
- 删除
+ 修改章节名称
+ 添加小节
+ 删除
@@ -57,10 +57,10 @@
- 查看
- 删除
- 修改小节名称
- 更换文件
+ 查看
+ 删除
+ 修改小节名称
+ 更换文件
diff --git a/src/pages/course/list/courseManagement/index.vue b/src/pages/course/list/courseManagement/index.vue
index 2f7a745..acdac72 100644
--- a/src/pages/course/list/courseManagement/index.vue
+++ b/src/pages/course/list/courseManagement/index.vue
@@ -16,8 +16,8 @@
- 新增
- 批量删除
+ 新增
+ 批量删除
@@ -43,19 +43,19 @@
- 编辑信息
-
- 内容设置
-
- 预览
-
- 删除
+ 编辑信息
+
+ 内容设置
+
+ 预览
+
+ 删除
-
+
-
+
@@ -37,25 +37,23 @@ export default {
},
computed: {
...mapState("auth", [
- "routes"
+ "btns"
])
},
+ mounted() {
+ Setting.dynamicRoute && this.initTabs();
+ },
methods: {
tabChange(index) {
this.active = index;
},
initTabs() {
- let showStaff = this.auth("课程管理");
- let showRole = this.auth("分类管理");
-
- if (!showStaff || !showRole) {
- this.showTabs = false;
- }
- !showStaff && showRole && (this.active = "second");
+ const { btns } = this
+ const tab1 = btns.includes('/course/list:课程管理')
+ const tab2 = btns.includes('/course/list:分类管理')
+ tab1 || delete this.tabs.first
+ tab2 || delete this.tabs.second
}
- },
- mounted() {
- Setting.dynamicRoute && this.initTabs();
}
};
diff --git a/src/pages/course/list/sortManagement/index.vue b/src/pages/course/list/sortManagement/index.vue
index 2bcebd3..6c89aa8 100644
--- a/src/pages/course/list/sortManagement/index.vue
+++ b/src/pages/course/list/sortManagement/index.vue
@@ -6,7 +6,7 @@
- 新增
+ 新增
@@ -19,9 +19,9 @@
- 修改
-
- 删除
+ 修改
+
+ 删除
diff --git a/src/pages/information/columnManage/index.vue b/src/pages/information/columnManage/index.vue
index 8dbd8a0..c6a469a 100644
--- a/src/pages/information/columnManage/index.vue
+++ b/src/pages/information/columnManage/index.vue
@@ -12,9 +12,9 @@
保存
- 更改排序
+ 更改排序
- 添加栏目
+ 添加栏目
@@ -31,13 +31,13 @@
{{ node.label }}
- 编辑
-
+ 编辑
+
- 新增
-
+ 新增
+
- 删除
+ 删除
diff --git a/src/pages/information/contentManage/contentList.vue b/src/pages/information/contentManage/contentList.vue
index 4a09749..d96d83e 100644
--- a/src/pages/information/contentManage/contentList.vue
+++ b/src/pages/information/contentManage/contentList.vue
@@ -4,9 +4,9 @@
- 保存排序
- 批量删除
- 新增文章
+ 保存排序
+ 批量删除
+ 新增文章
@@ -31,15 +31,15 @@
- 编辑
-
- 删除
+ 编辑
+
+ 删除
-
+
栏目管理
-
+
内容管理
diff --git a/src/pages/match/add/index.vue b/src/pages/match/add/index.vue
index 78be550..565d367 100644
--- a/src/pages/match/add/index.vue
+++ b/src/pages/match/add/index.vue
@@ -135,8 +135,8 @@
保存
- 发布
- 预览
+ 发布
+ 预览
diff --git a/src/pages/match/list/index.vue b/src/pages/match/list/index.vue
index d228396..0ae4cd5 100644
--- a/src/pages/match/list/index.vue
+++ b/src/pages/match/list/index.vue
@@ -69,13 +69,13 @@
- 管理
-
- 删除
+ 管理
+
+ 删除