<script setup>
import Mock from "mockjs"
let { data } = Mock.mock({
'data|10-20': [{
'employeeNo|245-543': 1,
name: '@cname',
'password|+1': 123456
}]
});
console.log(data, "mock-data")
</script>
<template>
<!-- <TheWelcome /> -->
<div v-for="item in data" :key="item._id">{{ item.name }}</div>
</template>
前端工程师、程序员