fix: 前端代理默认端口调整&水印开关不生效

This commit is contained in:
meilin.huang
2023-09-27 17:19:58 +08:00
parent 92dff6fdc3
commit fac71a4794
4 changed files with 21 additions and 24 deletions

View File

@@ -405,9 +405,7 @@ const toIndex = async () => {
// 关闭 loading
state.loading.signIn = true;
ElMessage.success(`${currentTimeInfo},欢迎回来!`);
if (await useWartermark()) {
saveUseWatermark(true);
}
saveUseWatermark(await useWartermark());
}, 300);
};

View File

@@ -2,7 +2,12 @@
<div>
<el-row class="mb5">
<el-col :span="4">
<el-button type="primary" icon="plus" @click="addQueryTab({ id: nowDbInst.id, dbs: nowDbInst.databases.split(' ') }, state.db)" size="small"
<el-button
:disabled="!state.db || !nowDbInst.id"
type="primary"
icon="plus"
@click="addQueryTab({ id: nowDbInst.id, dbs: nowDbInst.databases?.split(' ') }, state.db)"
size="small"
>新建查询</el-button
>
</el-col>

View File

@@ -29,7 +29,7 @@ const viteConfig: UserConfig = {
open: VITE_OPEN,
proxy: {
'/api': {
target: 'http://localhost:8888',
target: 'http://localhost:18888',
ws: true,
changeOrigin: true,
},