Skip to content

Commit

Permalink
fix: fix static resource loading failure after modifying `admin_path_…
Browse files Browse the repository at this point in the history
…prefix`

#63
  • Loading branch information
Li4n0 committed Mar 24, 2023
1 parent b33de11 commit b76757d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ package-lock.json
node_modules/

## frontend dist
dist/
dist/

## received files
revsuit-files
2 changes: 1 addition & 1 deletion frontend/src/views/logs/Ftp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<a-tag
v-if="file"
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">
FALSE
</a-tag>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/logs/Mysql.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
>
<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>
<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>
</div>
<div slot="selectDropdown"
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/settings/Rules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<a-space size="middle">
<a-upload
name="rules"
action="/revsuit/api/setting/importRules"
action="../api/setting/importRules"
@change="handleChange"
:showUploadList="false"
>
<a-button type="primary" icon="upload">Import</a-button>
</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-space>
<a-result v-if="status"
Expand Down
5 changes: 1 addition & 4 deletions frontend/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ module.exports = {
proxy: {
'/api': {
target: 'http://localhost:10000',
pathRewrite: {
'^/api': '/revsuit/api'
}
}
},
},
productionSourceMap: false,
runtimeCompiler: true,
filenameHashing: false,
publicPath: '/revsuit/admin/',
publicPath: '',
}

0 comments on commit b76757d

Please sign in to comment.