版本号更新

This commit is contained in:
2025-05-06 15:38:23 +08:00
parent 5e34aaf402
commit 60f6fc4873
10 changed files with 139 additions and 19 deletions

View File

@@ -99,8 +99,23 @@ export function usePythonBridge() {
}
};
const stopScript = () => {
if (bridge.value) {
bridge.value.stopScript();
}
};
//获取版本号
const getVersion = () => {
return new Promise((resolve, reject) => {
if (bridge.value) {
bridge.value.currentVersion(function (result) {
resolve(result);
});
}
});
};
// 在组件挂载时初始化桥接
onMounted(initBridge);
@@ -112,6 +127,8 @@ export function usePythonBridge() {
givePyAnchorId,
backStageloginStatus,
backStageloginStatusCopy,
exportToExcel
exportToExcel,
stopScript,
getVersion
};
}