merge
This commit is contained in:
@@ -24,7 +24,7 @@ if ($wujie) {
|
|||||||
path: data.path.split('/spdm')[1],
|
path: data.path.split('/spdm')[1],
|
||||||
query: data.query,
|
query: data.query,
|
||||||
});
|
});
|
||||||
emitter.emit('router_change', data);
|
emitter.emit('SPDM_ROUTER_CHANGE', data);
|
||||||
});
|
});
|
||||||
// 语言变化
|
// 语言变化
|
||||||
$wujie.bus.$on('LANGUAGE_CHANGE', (lang: string) => {
|
$wujie.bus.$on('LANGUAGE_CHANGE', (lang: string) => {
|
||||||
|
|||||||
@@ -483,7 +483,7 @@ defineExpose({
|
|||||||
});
|
});
|
||||||
// 预制参数_从首页点击跳转过来的参数
|
// 预制参数_从首页点击跳转过来的参数
|
||||||
const gettParams = () => {
|
const gettParams = () => {
|
||||||
const params = localStorage.getItem('home_taskParams');
|
const params = localStorage.getItem('HOME_TASK_PARAMS');
|
||||||
if (params) {
|
if (params) {
|
||||||
const paramsObj = filterBtnList.value.find((item) => item.key === params);
|
const paramsObj = filterBtnList.value.find((item) => item.key === params);
|
||||||
if (paramsObj) {
|
if (paramsObj) {
|
||||||
@@ -497,15 +497,15 @@ const gettParams = () => {
|
|||||||
filterTaskFun(paramsObj);
|
filterTaskFun(paramsObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
localStorage.removeItem('home_taskParams');
|
localStorage.removeItem('HOME_TASK_PARAMS');
|
||||||
};
|
};
|
||||||
emitter.on('router_change', (data: any) => {
|
emitter.on('SPDM_ROUTER_CHANGE', (data: any) => {
|
||||||
if (data.path === '/spdm/task/execute') {
|
if (data.path === '/spdm/task/execute') {
|
||||||
gettParams();
|
gettParams();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
emitter.off('router_change');
|
emitter.off('SPDM_ROUTER_CHANGE');
|
||||||
});
|
});
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!props.hideSpecialSearch) {
|
if (!props.hideSpecialSearch) {
|
||||||
|
|||||||
Reference in New Issue
Block a user