版本号更新
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user