|
|
@@ -108,7 +108,7 @@
|
|
|
</div>
|
|
|
<div v-show="isAlive">
|
|
|
<router-view v-slot="{ Component }" :key="$router.currentRoute.value.fullPath">
|
|
|
- <KeepAlive :exclude="['identifyFont', 'allback', 'search']">
|
|
|
+ <KeepAlive :include="['identifyFont']" :exclude="[ 'allback', 'search']">
|
|
|
<component :is="Component" />
|
|
|
</KeepAlive>
|
|
|
</router-view>
|
|
|
@@ -511,7 +511,7 @@ const toUserInfo = ()=>{
|
|
|
// 判断是否需要改密
|
|
|
const needRepass =async ()=>{
|
|
|
const infoRes = await getInfo();
|
|
|
- console.log("infoRes", infoRes);
|
|
|
+ // console.log("infoRes", infoRes);
|
|
|
if(infoRes.repass){
|
|
|
userStore.logOut().then(() => {
|
|
|
location.href = "/index";
|
|
|
@@ -922,7 +922,7 @@ const iframeSize = (par,history) => {
|
|
|
// 监听和保存标签信息
|
|
|
const setTabLocal = (data) => {
|
|
|
// console.log('setTabLocal',data);
|
|
|
- console.log('data====', data)
|
|
|
+ // console.log('data====', data)
|
|
|
sessionStorage.setItem('tabData', JSON.stringify(data))
|
|
|
}
|
|
|
const setFileTabLocal = (data) => {
|
|
|
@@ -946,7 +946,7 @@ watch(() => iFrameData.value, (newValue, oldValue) => {
|
|
|
watch(() => editableTabs.value, (newValue, oldValue) => {
|
|
|
// console.log('editableTabs 发生改变了', newValue, oldValue);
|
|
|
setTabLocal(toRaw(newValue))
|
|
|
- console.log('editableTabs.valuewatch', editableTabs.value)
|
|
|
+ // console.log('editableTabs.valuewatch', editableTabs.value)
|
|
|
}, {
|
|
|
immediate: true,
|
|
|
deep: true
|
|
|
@@ -955,14 +955,20 @@ watch(() => editableTabsValue.value, (newValue, oldValue) => {
|
|
|
// console.log('editableTabsValue 发生改变了', newValue, oldValue);
|
|
|
setEditableTabsValue(toRaw(newValue))
|
|
|
let regExp = new RegExp(/^\//);
|
|
|
- if (!regExp.test(editableTabsValue.value)) {
|
|
|
+ if (!regExp.test(editableTabsValue.value) && editableTabsValue.value != "identifyFont" && editableTabsValue.value != "search") {
|
|
|
isAlive.value = false;
|
|
|
}
|
|
|
- console.log('first editableTabsValue.value', editableTabsValue.value)
|
|
|
+ // console.log('first editableTabsValue.value', editableTabsValue.value)
|
|
|
}, {
|
|
|
immediate: true,
|
|
|
deep: true
|
|
|
});
|
|
|
+// watch(() => isAlive.value, (newValue, oldValue) => {
|
|
|
+// console.log('isAlive.isAlive', newValue)
|
|
|
+// }, {
|
|
|
+// immediate: true,
|
|
|
+// deep: true
|
|
|
+// });
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|