mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-28 23:46:06 +08:00
修改api地址以支持二级目录访问
This commit is contained in:
parent
35e0b89ec8
commit
253178ac98
|
@ -3,6 +3,7 @@ const CompressionPlugin = require('compression-webpack-plugin');
|
|||
|
||||
export default defineConfig({
|
||||
publicPath: './',
|
||||
base: './',
|
||||
hash: true,
|
||||
layout: false,
|
||||
nodeModulesTransform: {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
let pathname = location.pathname.split('/');
|
||||
pathname.pop();
|
||||
pathname.push('/api/');
|
||||
export default {
|
||||
siteName: '青龙控制面板',
|
||||
apiPrefix: '/api/',
|
||||
apiPrefix: pathname.join('/'),
|
||||
authKey: 'token',
|
||||
|
||||
/* Layout configuration, specify which layout to use for route. */
|
||||
|
|
Loading…
Reference in New Issue
Block a user