发布 0.1.0:通知渠道、告警规则与多项体验修复
This commit is contained in:
@@ -6,7 +6,6 @@ interface SerialTarget {
|
||||
instanceId: string
|
||||
region?: string
|
||||
instanceName?: string
|
||||
rootPassword?: string
|
||||
}
|
||||
|
||||
/** 全局串行控制台面板状态:面板挂在 AppLayout,切换路由不销毁会话 */
|
||||
@@ -16,7 +15,6 @@ export const useConsoleStore = defineStore('console', () => {
|
||||
const instanceId = ref('')
|
||||
const region = ref<string | undefined>(undefined)
|
||||
const instanceName = ref('')
|
||||
const rootPassword = ref('')
|
||||
|
||||
/** 打开串行终端;已开着且换了实例时先关旧会话再开新 */
|
||||
async function openSerial(target: SerialTarget) {
|
||||
@@ -29,7 +27,6 @@ export const useConsoleStore = defineStore('console', () => {
|
||||
instanceId.value = target.instanceId
|
||||
region.value = target.region
|
||||
instanceName.value = target.instanceName ?? ''
|
||||
rootPassword.value = target.rootPassword ?? ''
|
||||
show.value = true
|
||||
}
|
||||
|
||||
@@ -37,5 +34,5 @@ export const useConsoleStore = defineStore('console', () => {
|
||||
show.value = false
|
||||
}
|
||||
|
||||
return { show, cfgId, instanceId, region, instanceName, rootPassword, openSerial, close }
|
||||
return { show, cfgId, instanceId, region, instanceName, openSerial, close }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user