diff --git a/src/assets/images/Index/img_xgcg.png b/src/assets/images/Index/img_xgcg.png new file mode 100644 index 0000000..76d6c26 Binary files /dev/null and b/src/assets/images/Index/img_xgcg.png differ diff --git a/src/permission.js b/src/permission.js index 10ae497..9392fc4 100644 --- a/src/permission.js +++ b/src/permission.js @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2021-10-08 09:26:42 - * @LastEditTime: 2021-10-23 17:40:41 + * @LastEditTime: 2021-10-25 09:09:47 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /data-show/src/permission.js @@ -12,11 +12,12 @@ import "nprogress/nprogress.css" const whitePath = ['/', '/login', '/industryDataExport','/index'] const token = sessionStorage.getItem('token'); +// console.log(token) router.beforeEach((to, from, next) => { + NProgress.start() if(!token && !whitePath.includes(to.path)) { next('/login'); - } else { - NProgress.start() + } else { next() } diff --git a/src/views/MarketingAnalysis/index.vue b/src/views/MarketingAnalysis/index.vue new file mode 100644 index 0000000..231914c --- /dev/null +++ b/src/views/MarketingAnalysis/index.vue @@ -0,0 +1,23 @@ + + + + + + diff --git a/src/views/Myself/index.vue b/src/views/Myself/index.vue index abb6874..3a57cb4 100644 --- a/src/views/Myself/index.vue +++ b/src/views/Myself/index.vue @@ -1,7 +1,7 @@