fix:相关漏洞修复
This commit is contained in:
1 parent
0e66d461a7
commit
766bdea32a
6 files changed
+370
-294
No files matched your search
@@ -14,31 +14,34 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="layoutLinkView">
|
||||
import { verifyUrl } from '/@/utils/toolsValidate';
|
||||
import { verifyUrl } from "/@/utils/toolsValidate"
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute();
|
||||
const route = useRoute()
|
||||
const state = reactive<LinkViewState>({
|
||||
title: '',
|
||||
isLink: '',
|
||||
});
|
||||
title: "",
|
||||
isLink: "",
|
||||
})
|
||||
|
||||
// 立即前往
|
||||
const onGotoFullPage = () => {
|
||||
if (verifyUrl(<string>state.isLink)) window.open(state.isLink);
|
||||
else window.open(`${state.isLink}`);
|
||||
};
|
||||
if (verifyUrl(<string>state.isLink)) {
|
||||
window.open(state.isLink)
|
||||
} else {
|
||||
window.open(`${state.isLink}`)
|
||||
}
|
||||
}
|
||||
// 监听路由的变化,设置内容
|
||||
watch(
|
||||
() => route.path,
|
||||
() => {
|
||||
state.title = <string>route.name;
|
||||
state.isLink = <string>route.meta.isLink;
|
||||
state.title = <string>route.name
|
||||
state.isLink = <string>route.meta.isLink
|
||||
},
|
||||
{
|
||||
immediate: true,
|
||||
}
|
||||
);
|
||||
},
|
||||
)
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@@ -56,7 +59,7 @@ watch(
|
||||
color: var(--el-color-primary);
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 50px;
|
||||
top: 0;
|
||||
|
||||
Reference in new issue
Block a user