二维码修改

This commit is contained in:
joshen
2025-03-07 16:08:10 +08:00
parent 983041e9e5
commit 173e421e47

View File

@@ -7,7 +7,7 @@
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<el-result icon="success" title="二维码已失效">
<el-result icon="success" :title="title">
<template #extra>
<el-button type="primary" @click="toIndex">返回首页</el-button>
</template>
@@ -18,4 +18,14 @@ function toIndex() {
window.location.href =
window.location.protocol + import.meta.env.VITE_BOE_HOME;
}
onMounted(() => {
// 接收跳转请求的query参数
let route = useRoute();
console.log(route.query.msg);
if (route.query.msg) {
title.value = route.query.msg;
}
});
</script>