docs: explain instance access, monitoring and resource management

This commit is contained in:
cieanyau committed 2026-11-06 00:34:17 +08:00
1 parent ab22d406c0
commit 7f54cae497
10 files changed
+48

No files matched your search

+5
View File
@@ -1,4 +1,5 @@
<script>
/** 通用模块实例管理:服务端按钮能力、图表、扩展展示与日志,升级/支付由子组件和父级协作。 */
import "~/assets/styles/CommonUpgrade.C8sZ-ExM.css";
import "~/assets/styles/LegacyProductUpgrade.dzWGwGgY.css";
import "~/assets/styles/RemfUpgrade.4stQ5ASH.css";
@@ -52,6 +53,7 @@ import { r as CommonUpgrade_r } from "~/components/instance/CommonUpgrade.vue";
import { s as CommonUpgrade_s } from "~/components/instance/CommonUpgrade.vue";
import CommonUpgrade from "~/components/instance/CommonUpgrade.vue";
function pe(e, t = () => {}) {
// 操作适配器只接受当前 Active 实例中明确 supported 的按钮,动作绑定模块/实例/状态快照。
let n = useApi(),
r = computed(() => e().module === `remf_finance_common`),
o = computed(() =>
@@ -105,6 +107,7 @@ function pe(e, t = () => {}) {
(l.value = e));
}
async function te() {
// 敏感动作先校验密码/镜像/重装知情确认;自定义动作与内置 provision 使用不同接口。
let i = l.value;
if (
!i ||
@@ -415,6 +418,7 @@ var me = {
X = 0,
Z = 0;
async function Q() {
// 每张图表独立请求并记录错误;请求身份已变化时整轮结果不再回写。
let e = ++X;
((G.value = !0), (W.value = {}), (U.value = {}));
let t = Math.floor(Date.now() / 1e3) - K.value;
@@ -451,6 +455,7 @@ var me = {
Y && e === X && (G.value = !1));
}
async function $() {
// 日志按接口分页读取;未获得数组时视为协议错误,而非显示一个误导性的空列表。
let e = ++Z;
((q.value = !0), (J.value = ``));
try {