spin only in reload time

Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
MHSanaei 2023-05-13 13:24:44 +03:30
parent edd6b22109
commit 9a89d7bfab
2 changed files with 4 additions and 2 deletions

View File

@ -343,7 +343,9 @@
return; return;
} }
this.setInbounds(msg.obj); this.setInbounds(msg.obj);
setTimeout(() => {
this.refreshing = false; this.refreshing = false;
}, 500);
}, },
async getDefaultSettings() { async getDefaultSettings() {
const msg = await HttpUtil.post('/panel/setting/defaultSettings'); const msg = await HttpUtil.post('/panel/setting/defaultSettings');

View File

@ -6,7 +6,7 @@ import (
) )
type InboundConfig struct { type InboundConfig struct {
Listen json_util.RawMessage `json:"listen"` // listen 不能为空字符串 Listen json_util.RawMessage `json:"listen"` // listen cannot be an empty string
Port int `json:"port"` Port int `json:"port"`
Protocol string `json:"protocol"` Protocol string `json:"protocol"`
Settings json_util.RawMessage `json:"settings"` Settings json_util.RawMessage `json:"settings"`