diff --git a/src/router/index.js b/src/router/index.js index 5ed02aa..9b07fa8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -74,6 +74,17 @@ export const dynamicRouters = [ meta: { title: '所有文件' } }] }, + { + path: '/upload/index_m', + component: Layout, + redirect: '/upload/index_m', + children: [{ + path: '', + name: 'Home_m', + component: () => import('@/views/upload/mobile/index'), + meta: { title: '文件传输' } + }] + }, { path: '/s_m', component: Layout, diff --git a/src/utils/request.js b/src/utils/request.js index dc905e9..d0151e1 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -13,7 +13,6 @@ const service = axios.create({ // request interceptor service.interceptors.request.use( config => { - store.dispatch('updateMessage', {event: 'request', data: 1}) // do something before request is sent if (store.getters.token) { config.headers['jmal-token'] = getToken() diff --git a/src/views/home/mobile/index.vue b/src/views/home/mobile/index.vue index 98bf1fa..901c751 100644 --- a/src/views/home/mobile/index.vue +++ b/src/views/home/mobile/index.vue @@ -286,8 +286,6 @@ import {suffix} from "@/utils/file-type"; import OfficePreview from "@/components/preview/OfficePreview"; import Clipboard from "clipboard"; -let pinyin = require("pinyin"); - export default { components: { OfficePreview, @@ -409,11 +407,7 @@ export default { // 加载布局 if (this.$route.query.vmode) { this.vmode = this.$route.query.vmode - if (this.vmode === 'list') { - this.grid = false - } else { - this.grid = true - } + this.grid = this.vmode !== 'list'; } // 加载url上的path if (this.$route.query.path !== '/') {