fix: redis 改密并持久化

This commit is contained in:
ssongliu
2022-12-12 14:06:39 +08:00
committed by ssongliu
parent 7eea08c842
commit 62d0d3fc2c
14 changed files with 200 additions and 79 deletions

View File

@@ -48,6 +48,7 @@ const terminalRef = ref();
const settingRef = ref();
const isOnSetting = ref(false);
const redisIsExist = ref(false);
const redisSattus = ref();
const redisCommandPort = ref();
const commandVisiable = ref(false);
@@ -55,7 +56,7 @@ const commandVisiable = ref(false);
const onSetting = async () => {
isOnSetting.value = true;
terminalRef.value.onClose();
settingRef.value!.acceptParams();
settingRef.value!.acceptParams({ status: redisSattus.value });
};
const goRouter = async (path: string) => {
@@ -79,6 +80,7 @@ const loadDashboardPort = async () => {
const checkExist = (data: App.CheckInstalled) => {
redisIsExist.value = data.isExist;
redisSattus.value = data.status;
if (redisIsExist.value) {
loadDashboardPort();
terminalRef.value.acceptParams();