flat: init

This commit is contained in:
史典卓
2024-11-08 11:55:23 +08:00
commit 0e64009a8a
80 changed files with 10529 additions and 0 deletions

35
pages/index/index.vue Normal file
View File

@@ -0,0 +1,35 @@
<template>
<view class="content"></view>
</template>
<script setup>
import { reactive, inject, watch } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
import useUserStore from '../../stores/useUserStore';
const { $api, navTo } = inject('globalFunction');
const userStore = useUserStore();
const state = reactive({
title: '123123123房贷首付打的手机家里好玩的很浓厚第卡后sdhiwohdijasnbdhoui1很努力',
});
onShow(() => {
console.log('onShow');
});
onLoad(() => {
console.log('onLoad');
$api.sleep(2000).then(() => {
navTo('/pages/login/login');
});
});
watch(
() => state.title,
(newValue, oldValue) => {},
{ deep: true }
);
</script>
<style lang="stylus" scoped>
.logo
width: 100px;
height: 100px;
</style>