feat 创建源数据文件
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { mockData } from '@/mock/index'
|
||||
|
||||
definePage({
|
||||
layout: false,
|
||||
})
|
||||
@@ -6,6 +8,8 @@ definePage({
|
||||
|
||||
<template>
|
||||
<view>首页</view>
|
||||
<view>消息:{{ mockData.message }}</view>
|
||||
<view>时间:{{ mockData.time }}</view>
|
||||
</template>
|
||||
|
||||
<style></style>
|
||||
|
||||
Reference in New Issue
Block a user