commit
8b03d6dd6f
@ -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,
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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 !== '/') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user