feat: 错误页停止加载动画

This commit is contained in:
wang_fan_w 2024-07-14 20:25:17 +08:00
parent aa4fd74c4c
commit 73eef5c92d
3 changed files with 14 additions and 0 deletions

View File

@ -12,11 +12,16 @@
</template>
<script setup lang="ts">
import { loadingPage } from "@/utils/loading-page";
import { useRouter } from "vue-router";
const router = useRouter();
const onBack = () => {
router.go(-1);
};
onMounted(() => {
loadingPage.done(200);
});
</script>
<style lang="scss" scoped>

View File

@ -12,11 +12,15 @@
</template>
<script setup lang="ts">
import { loadingPage } from "@/utils/loading-page";
import { useRouter } from "vue-router";
const router = useRouter();
const onBack = () => {
router.go(-1);
};
onMounted(() => {
loadingPage.done(200);
});
</script>
<style lang="scss" scoped>

View File

@ -12,6 +12,7 @@
</template>
<script setup lang="ts">
import { loadingPage } from "@/utils/loading-page";
import { Message } from "@arco-design/web-vue";
import { useRouter } from "vue-router";
const router = useRouter();
@ -23,6 +24,10 @@ const onBack = () => {
router.go(-1);
}
};
onMounted(() => {
loadingPage.done(200);
});
</script>
<style lang="scss" scoped>