mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-21 22:30:46 +08:00
fix: fix static resource loading failure after modifying admin_path_prefix
#63
This commit is contained in:
+4
-1
@@ -28,4 +28,7 @@ package-lock.json
|
|||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
## frontend dist
|
## frontend dist
|
||||||
dist/
|
dist/
|
||||||
|
|
||||||
|
## received files
|
||||||
|
revsuit-files
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
<a-tag
|
<a-tag
|
||||||
v-if="file"
|
v-if="file"
|
||||||
color="#f5222d"
|
color="#f5222d"
|
||||||
><a target="_blank" :href="'/revsuit/api/file/ftp/'+file.id">TRUE</a> </a-tag>
|
><a target="_blank" :href="'../api/file/ftp/'+file.id">TRUE</a> </a-tag>
|
||||||
<a-tag v-else color="#722ed1">
|
<a-tag v-else color="#722ed1">
|
||||||
FALSE
|
FALSE
|
||||||
</a-tag>
|
</a-tag>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
>
|
>
|
||||||
<div v-if="record.files.length" slot="expandedRowRender" slot-scope="record" style="margin: 0">
|
<div v-if="record.files.length" slot="expandedRowRender" slot-scope="record" style="margin: 0">
|
||||||
<b v-if="record.files.length" style="color: gray">FILES:</b><br>
|
<b v-if="record.files.length" style="color: gray">FILES:</b><br>
|
||||||
<a v-for="file in record.files" :key="file.name+record.id" :href="'/revsuit/api/file/mysql/'+file.id"
|
<a v-for="file in record.files" :key="file.name+record.id" :href="'../api/file/mysql/'+file.id"
|
||||||
target="_blank">{{ file.name }} </a>
|
target="_blank">{{ file.name }} </a>
|
||||||
</div>
|
</div>
|
||||||
<div slot="selectDropdown"
|
<div slot="selectDropdown"
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
<a-space size="middle">
|
<a-space size="middle">
|
||||||
<a-upload
|
<a-upload
|
||||||
name="rules"
|
name="rules"
|
||||||
action="/revsuit/api/setting/importRules"
|
action="../api/setting/importRules"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
:showUploadList="false"
|
:showUploadList="false"
|
||||||
>
|
>
|
||||||
<a-button type="primary" icon="upload">Import</a-button>
|
<a-button type="primary" icon="upload">Import</a-button>
|
||||||
</a-upload>
|
</a-upload>
|
||||||
<a-button type="primary" icon="download" onclick="window.open('/revsuit/api/setting/exportRules')">Export
|
<a-button type="primary" icon="download" onclick="window.open('../api/setting/exportRules')">Export
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
<a-result v-if="status"
|
<a-result v-if="status"
|
||||||
|
|||||||
@@ -11,14 +11,11 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://localhost:10000',
|
target: 'http://localhost:10000',
|
||||||
pathRewrite: {
|
|
||||||
'^/api': '/revsuit/api'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
runtimeCompiler: true,
|
runtimeCompiler: true,
|
||||||
filenameHashing: false,
|
filenameHashing: false,
|
||||||
publicPath: '/revsuit/admin/',
|
publicPath: '',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user