|
@@ -400,25 +400,33 @@ const toSearch = async () => {
|
|
const res = await flieSearch(query);
|
|
const res = await flieSearch(query);
|
|
// console.log("res", res);
|
|
// console.log("res", res);
|
|
if (res) {
|
|
if (res) {
|
|
- // console.log("res", res);
|
|
|
|
- // console.log("router", route.path);
|
|
|
|
- if (route.path != "/search") {
|
|
|
|
- router.push({
|
|
|
|
- name: "search",
|
|
|
|
- params: {
|
|
|
|
- searchData: JSON.stringify(res),
|
|
|
|
- searchText: searchText.value,
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- router.replace({
|
|
|
|
- path: "/allback",
|
|
|
|
- query: {
|
|
|
|
|
|
+ const itemData = {
|
|
|
|
+ label:'全局搜索',
|
|
|
|
+ path:'/search',
|
|
|
|
+ data:{
|
|
searchData: JSON.stringify(res),
|
|
searchData: JSON.stringify(res),
|
|
searchText: searchText.value,
|
|
searchText: searchText.value,
|
|
- },
|
|
|
|
- });
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ // console.log("res", res);
|
|
|
|
+ // console.log("router", route.path);
|
|
|
|
+ // if (route.path != "/search") {
|
|
|
|
+ // router.push({
|
|
|
|
+ // name: "search",
|
|
|
|
+ // params: {
|
|
|
|
+ // searchData: JSON.stringify(res),
|
|
|
|
+ // searchText: searchText.value,
|
|
|
|
+ // },
|
|
|
|
+ // });
|
|
|
|
+ // } else {
|
|
|
|
+ // router.replace({
|
|
|
|
+ // path: "/allback",
|
|
|
|
+ // query: {
|
|
|
|
+ // searchData: JSON.stringify(res),
|
|
|
|
+ // searchText: searchText.value,
|
|
|
|
+ // },
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
};
|
|
};
|
|
const emits = defineEmits(["setLayout"]);
|
|
const emits = defineEmits(["setLayout"]);
|
|
@@ -679,20 +687,6 @@ const addFileTab = (data) => {
|
|
});
|
|
});
|
|
iFrameData.value = arr;
|
|
iFrameData.value = arr;
|
|
isAlive.value = false;
|
|
isAlive.value = false;
|
|
- // const outIframe = document.getElementById("iframe" + par.id);
|
|
|
|
- // const inIframe =
|
|
|
|
- // outIframe.contentDocument.getElementsByTagName("iframe")[0];
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // console.log('outIframe',outIframe.parentElement);
|
|
|
|
- // console.error(outIframe.parentElement);
|
|
|
|
- // inIframe.style.height = outIframe.style.height =
|
|
|
|
- // outIframe.parentElement.offsetHeight + "px";
|
|
|
|
- // inIframe.style.width = outIframe.style.width =
|
|
|
|
- // outIframe.parentElement.offsetWidth + "px";
|
|
|
|
-
|
|
|
|
- // // console.log('dom',outIframe.parentElement.offsetWidth);
|
|
|
|
- // // console.log('inIframe',inIframe);
|
|
|
|
- // }, 500);
|
|
|
|
console.log("addFileTab", arr);
|
|
console.log("addFileTab", arr);
|
|
};
|
|
};
|
|
//创建tab标签事件
|
|
//创建tab标签事件
|