初始化
This commit is contained in:
parent
50448d9581
commit
3e39850a22
|
|
@ -2,7 +2,6 @@
|
|||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import axios from 'axios'
|
||||
import NProgress from 'nprogress'
|
||||
import { useDebounceFn } from '@vueuse/core'
|
||||
import { useStore } from 'store/main'
|
||||
const store = useStore()
|
||||
// const CancelToken = axios.CancelToken
|
||||
|
|
|
|||
|
|
@ -38,15 +38,5 @@ export default [
|
|||
keepAlive: true,
|
||||
AuthFlag: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'vantTest', //
|
||||
name: 'vantTest',
|
||||
component: () => import('views/test/VantTest.vue'), // 组件加载
|
||||
meta: {
|
||||
title: 'vant测试',
|
||||
keepAlive: true,
|
||||
AuthFlag: false
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,41 +0,0 @@
|
|||
<template>
|
||||
<h1>我是时间测试</h1>
|
||||
<van-button type="primary" @click="toastFn">6666</van-button>
|
||||
<div class="fontTest">字体自适应</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
|
||||
const { proxy } = getCurrentInstance() as any
|
||||
|
||||
onBeforeMount(() => {
|
||||
console.log('onBeforeMount')
|
||||
})
|
||||
onMounted(() => {
|
||||
console.log('onMounted')
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
console.log('onBeforeUnmount')
|
||||
})
|
||||
onUnmounted(() => {
|
||||
console.log('onUnmounted')
|
||||
})
|
||||
let a = computed(() => {
|
||||
return 'aaa'
|
||||
})
|
||||
|
||||
console.log(a)
|
||||
|
||||
const toastFn = () => {
|
||||
proxy.$toast('99999')
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.fontTest {
|
||||
font-size: 32px;
|
||||
color: $main-color;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue