评论需要添加功能,提交订单有问题
This commit is contained in:
@@ -1,31 +1,20 @@
|
||||
<script setup>
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { onLoad, onUnload } from '@dcloudio/uni-app'
|
||||
import { ref } from 'vue'
|
||||
import { reLaunch } from '@/utils/router'
|
||||
const cb = v => {
|
||||
console.log(v)
|
||||
}
|
||||
|
||||
// export default {
|
||||
// data() {
|
||||
// return {
|
||||
// title: 'Hello'
|
||||
// }
|
||||
// },
|
||||
// onLoad() {
|
||||
|
||||
// },
|
||||
// methods: {
|
||||
|
||||
// }
|
||||
// }
|
||||
const indexGo = ref(null)
|
||||
|
||||
onLoad(() => {
|
||||
// 3秒后跳转
|
||||
setTimeout(() => {
|
||||
indexGo.value = setTimeout(() => {
|
||||
reLaunch('/pages/news-list/news-list')
|
||||
}, 3000)
|
||||
})
|
||||
|
||||
onUnload(() => {
|
||||
clearTimeout(indexGo.value)
|
||||
})
|
||||
const title = ref('这个是启动页')
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user