fix: 修复移动端文件文件传输界面404的问题
This commit is contained in:
parent
d6c0b8082d
commit
7b7761a0fe
@ -74,6 +74,17 @@ export const dynamicRouters = [
|
|||||||
meta: { title: '所有文件' }
|
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',
|
path: '/s_m',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
|||||||
@ -13,7 +13,6 @@ const service = axios.create({
|
|||||||
// request interceptor
|
// request interceptor
|
||||||
service.interceptors.request.use(
|
service.interceptors.request.use(
|
||||||
config => {
|
config => {
|
||||||
store.dispatch('updateMessage', {event: 'request', data: 1})
|
|
||||||
// do something before request is sent
|
// do something before request is sent
|
||||||
if (store.getters.token) {
|
if (store.getters.token) {
|
||||||
config.headers['jmal-token'] = getToken()
|
config.headers['jmal-token'] = getToken()
|
||||||
|
|||||||
@ -286,8 +286,6 @@ import {suffix} from "@/utils/file-type";
|
|||||||
import OfficePreview from "@/components/preview/OfficePreview";
|
import OfficePreview from "@/components/preview/OfficePreview";
|
||||||
import Clipboard from "clipboard";
|
import Clipboard from "clipboard";
|
||||||
|
|
||||||
let pinyin = require("pinyin");
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
OfficePreview,
|
OfficePreview,
|
||||||
@ -409,11 +407,7 @@ export default {
|
|||||||
// 加载布局
|
// 加载布局
|
||||||
if (this.$route.query.vmode) {
|
if (this.$route.query.vmode) {
|
||||||
this.vmode = this.$route.query.vmode
|
this.vmode = this.$route.query.vmode
|
||||||
if (this.vmode === 'list') {
|
this.grid = this.vmode !== 'list';
|
||||||
this.grid = false
|
|
||||||
} else {
|
|
||||||
this.grid = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// 加载url上的path
|
// 加载url上的path
|
||||||
if (this.$route.query.path !== '/') {
|
if (this.$route.query.path !== '/') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user