From 9eb7b433b4dabcd7907ffb84efb009206db88ea6 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期五, 02 八月 2024 13:53:48 +0800 Subject: [PATCH] update 优化 类型报错问题 --- src/views/error/401.vue | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/error/401.vue b/src/views/error/401.vue index 63c03ba..968550c 100644 --- a/src/views/error/401.vue +++ b/src/views/error/401.vue @@ -21,15 +21,14 @@ <script setup lang="ts"> import errImage from '@/assets/401_images/401.gif'; -import { ComponentInternalInstance } from "vue"; let { proxy } = getCurrentInstance() as ComponentInternalInstance; -const errGif = ref(errImage + "?" + +new Date()); +const errGif = ref(errImage + '?' + +new Date()); function back() { if (proxy?.$route.query.noGoBack) { - proxy.$router.push({ path: "/" }); + proxy.$router.push({ path: '/' }); } else { proxy?.$router.go(-1); } -- Gitblit v1.9.3