diff --git a/public/index.html b/public/index.html
index f5aac48..28d9c8a 100644
--- a/public/index.html
+++ b/public/index.html
@@ -8,7 +8,7 @@
-
+
<%= webpackConfig.name %>
diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue
index 0219fab..2a67abb 100644
--- a/src/components/ShowFile/ShowFile.vue
+++ b/src/components/ShowFile/ShowFile.vue
@@ -2243,7 +2243,20 @@
}else{
fileIds.push(this.rowContextData.id)
}
- window.open(process.env.VUE_APP_BASE_FILE_API + 'download?jmal-token=' + this.$store.state.user.token + '&fileIds=' + fileIds, '_self')
+ let host = window.location.host
+ if(window.location.port.length > 0){
+ host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
+ }
+ console.log(host)
+ if(process.env.NODE_ENV !== 'development'){
+ let host = window.location.host
+ if(window.location.port.length > 0){
+ host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
+ }
+ window.open(`http://${host}:8088/download?jmal-token=${this.$store.state.user.token}&fileIds=${fileIds}`,'_self')
+ }else{
+ window.open(process.env.VUE_APP_BASE_FILE_API + '/download?jmal-token=' + this.$store.state.user.token + '&fileIds=' + fileIds, '_self')
+ }
} else {
this.$message({
message: '所选文件为空',
diff --git a/src/router/index.js b/src/router/index.js
index a071ee4..0221d89 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -164,18 +164,18 @@ export const constantRoutes = [
]
},
- {
- path: '/demo',
- component: Layout,
- children: [
- {
- path: 'index',
- name: 'demo',
- component: () => import('@/views/demo/index'),
- meta: { title: 'demo', icon: 'example' }
- }
- ]
- },
+ // {
+ // path: '/demo',
+ // component: Layout,
+ // children: [
+ // {
+ // path: 'index',
+ // name: 'demo',
+ // component: () => import('@/views/demo/index'),
+ // meta: { title: 'demo', icon: 'example' }
+ // }
+ // ]
+ // },
{
path: '/markdown',