This commit is contained in:
parent
911bc95b16
commit
36951a5bb8
@ -79,7 +79,7 @@ func asyncWireguardConfigFile() {
|
||||
var renderClients []template_data.Client
|
||||
for _, v := range serverEnt.Clients {
|
||||
// 如果不是确认后创建或者未启用就不写入到wireguard配置文件当中
|
||||
if *v.EnableAfterCreation != 1 || *v.Enabled != 1 {
|
||||
if *v.Enabled != 1 {
|
||||
continue
|
||||
}
|
||||
var clientKey template_data.Keys
|
||||
|
@ -132,6 +132,7 @@ const getRule = () => {
|
||||
rule.value = res.data.rule === "hand";
|
||||
}
|
||||
});
|
||||
storageLocal().setItem("restart-rule", rule.value);
|
||||
return rule;
|
||||
};
|
||||
|
||||
|
@ -87,7 +87,13 @@ getClientsStatus();
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<span>操作日志</span>
|
||||
<el-button style="float: right" type="primary" :icon="Refresh" @click="refreshClick('systemLog')">刷新</el-button>
|
||||
<el-button
|
||||
style="float: right"
|
||||
type="primary"
|
||||
:icon="Refresh"
|
||||
@click="refreshClick('systemLog')"
|
||||
>刷新</el-button
|
||||
>
|
||||
</div>
|
||||
</template>
|
||||
<el-table
|
||||
@ -194,7 +200,13 @@ getClientsStatus();
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<span>客户端链接状态</span>
|
||||
<el-button style="float: right" type="primary" :icon="Refresh" @click="refreshClick('clientStatus')">刷新</el-button>
|
||||
<el-button
|
||||
style="float: right"
|
||||
type="primary"
|
||||
:icon="Refresh"
|
||||
@click="refreshClick('clientStatus')"
|
||||
>刷新</el-button
|
||||
>
|
||||
</div>
|
||||
</template>
|
||||
<el-table
|
||||
@ -256,11 +268,7 @@ getClientsStatus();
|
||||
min-width="80"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
min-width="80"
|
||||
align="center"
|
||||
>
|
||||
<el-table-column label="操作" min-width="80" align="center">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
v-if="scope.row.isOnline"
|
||||
|
@ -151,6 +151,7 @@ const openAddClientDialog = () => {
|
||||
}
|
||||
});
|
||||
const serverInfo = storageLocal().getItem("server-info");
|
||||
const restartRule = storageLocal().getItem("restart-rule") ? 1 : 0;
|
||||
addDialog({
|
||||
width: "40%",
|
||||
title: "新增",
|
||||
@ -167,7 +168,7 @@ const openAddClientDialog = () => {
|
||||
extraAllowedIPS: "",
|
||||
endpoint: "",
|
||||
useServerDNS: 0,
|
||||
enableAfterCreation: 0,
|
||||
enableAfterCreation: restartRule,
|
||||
keys: {
|
||||
privateKey: "",
|
||||
publicKey: "",
|
||||
|
@ -47,7 +47,7 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
|
||||
sourcemap: false,
|
||||
// 消除打包大小超过500kb警告
|
||||
chunkSizeWarningLimit: 4000,
|
||||
outDir: "../web",
|
||||
outDit: "../web",
|
||||
rollupOptions: {
|
||||
input: {
|
||||
index: pathResolve("./index.html", import.meta.url)
|
||||
|
Loading…
Reference in New Issue
Block a user