Merge pull request #131 from jamebal/upload

fix: 修复移动端文件文件传输界面404的问题
This commit is contained in:
jmal 2024-05-28 18:19:39 +08:00 committed by GitHub
commit 8b03d6dd6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 8 deletions

View File

@ -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,

View File

@ -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()

View File

@ -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 !== '/') {