This commit is contained in:
2025-08-27 16:01:18 +08:00
parent 6dfb913822
commit d2794dfe1a

View File

@@ -100,19 +100,18 @@ const menuTabs = reactive([
const getData = async (id, task_children_id) => {
const {data} = await Api.system.getTaskinfo(id || details.value.id, task_children_id || details.value?.children?.id);
details.value = data;
init();
}
onLoad((options) => {
const {id, home: _home, tab, task_children_id, delta: _delta} = options;
home.value = _home === '1';
if (tab) currentTabs.value = Number(tab);
if (delta) delta.value = _delta
if (delta) delta.value = _delta;
getData(id, task_children_id);
});
onMounted(() => {
setTimeout(() => {
const instancs = getCurrentInstance();
const init = () => {
let ALGL = 0;
let HTYQ = 0;
let SJYQ = 0;
@@ -129,9 +128,10 @@ onMounted(() => {
menuTabs[0].value = ALGL;
menuTabs[1].value = HTYQ;
menuTabs[2].value = SJYQ;
}, 500);
if (home.value) showInitModal.value = true;
})
}
const scrollState = reactive({
top: 0,
});