diff --git a/src/mixins/index.js b/src/mixins/index.js index fd9334a..c19810f 100644 --- a/src/mixins/index.js +++ b/src/mixins/index.js @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2021-10-12 13:56:13 - * @LastEditTime: 2021-11-11 10:12:10 + * @LastEditTime: 2021-11-11 10:44:35 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /data-show/src/mixins/index.js @@ -39,7 +39,6 @@ export default { 'loading': Loading, resize: { // 指令的名称 bind(el, binding) { // el为绑定的元素,binding为绑定给指令的对象 - // console.log(el, "绑定", binding); let width = '', height = ''; function isReize() { const style = document.defaultView.getComputedStyle(el); @@ -52,7 +51,6 @@ export default { el.__vueSetInterval__ = setInterval(isReize, 300); }, unbind(el) { - // console.log(el, "解绑"); clearInterval(el.__vueSetInterval__); } }, @@ -83,7 +81,6 @@ export default { // adaptive(el, binding.value) // }, unbind(el) { - // console.log(el, "解绑"); clearInterval(el.__vueSetInterval__); } } diff --git a/src/permission.js b/src/permission.js index c92ce0a..03f73e2 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-11-09 11:06:03 + * @LastEditTime: 2021-11-11 10:44:05 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /data-show/src/permission.js @@ -11,7 +11,7 @@ import NProgress from "nprogress" import "nprogress/nprogress.css" const whitePath = ['/', '/login', '/industryDataExport','/index'] -// console.log(token) + router.beforeEach((to, from, next) => { NProgress.start() const token = sessionStorage.getItem('token'); diff --git a/src/request/index.js b/src/request/index.js index ac609a2..fd55a3b 100644 --- a/src/request/index.js +++ b/src/request/index.js @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2021-10-13 09:28:02 - * @LastEditTime: 2021-10-28 14:00:32 + * @LastEditTime: 2021-11-11 10:45:00 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /data-show/src/request/index.js @@ -70,7 +70,6 @@ httpService.interceptors.response.use(response => { },err => { // TODO:具体的code对应的处理可继续添加修改 if(err.response.Code === 301){ - // console.log('登录过期'); //登录过期跳转登录页面,并将要浏览的页面fullPath传过去,登录成功后跳转需要访问的页面 ---主页(index) 或者 退出到登录前的浏览的页面 //这样登录页面登录接口成功之后可以进行跳转 主页(index) 或者 退出到登录前的页面: let path = this.$route.query.redirect || '/index.js'; this.$router.push(path); setTimeout(() => { diff --git a/src/utils/gol/dataTool.js b/src/utils/gol/dataTool.js index df00673..a645e74 100644 --- a/src/utils/gol/dataTool.js +++ b/src/utils/gol/dataTool.js @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2021-10-29 13:29:26 - * @LastEditTime: 2021-10-29 20:58:56 + * @LastEditTime: 2021-11-11 10:45:13 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /data-show/src/utils/gol/dataTool.js @@ -19,7 +19,6 @@ export function bigNumberTransform(value) { while (value / fr >= 1) { fr *= 10 num += 1 - // console.log('数字', value / fr, 'num:', num) } if (num <= 4) { // 千 newValue[0] = parseInt(value / 1000) + '' diff --git a/src/views/BrandComparison/BrandComparison.vue b/src/views/BrandComparison/BrandComparison.vue index c5d34e9..0d310ae 100644 --- a/src/views/BrandComparison/BrandComparison.vue +++ b/src/views/BrandComparison/BrandComparison.vue @@ -1,7 +1,7 @@