34 lines
780 B
Vue
34 lines
780 B
Vue
<script lang="ts" setup>
|
|
import { onLoad } from '@dcloudio/uni-app';
|
|
import BasicButton from '@/components/BasicButton/index.vue';
|
|
|
|
const go = ref<string>('');
|
|
const router = useRouter();
|
|
const redirect = ref<string>('');
|
|
onLoad((query) => {
|
|
go.value = query?.go || '';
|
|
redirect.value = query?.redirect || '';
|
|
});
|
|
|
|
/**
|
|
* 返回首页
|
|
*/
|
|
function backHome() {
|
|
router.pushTab(redirect.value);
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<view class="w-screen flex flex-col items-center pt-320rpx">
|
|
<image class="w-360rpx" mode="widthFix" src="/static/svg/weep.svg" />
|
|
<view class="mb-40rpx">
|
|
<text>{{ go }} 页面找不到了~</text>
|
|
</view>
|
|
<BasicButton @click="backHome">
|
|
返回首页
|
|
</BasicButton>
|
|
</view>
|
|
</template>
|
|
|
|
<style lang="scss" scoped></style>
|