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