车间能级提升-智能设备管理系统
zhuguifei
2025-04-18 7db4e38c6d967d511f0c1248bf22ceaf6a6f55d3
eims-ui-mobile/src/pages/home/index.vue
@@ -128,8 +128,7 @@
</template>
<script lang="ts" setup>
import { TestEnum } from '@/typings'
import PLATFORM from '@/utils/platform'
import { getAllMenusApi } from '@/service/menu'
defineOptions({
  name: 'Home',
@@ -137,14 +136,14 @@
// 获取屏幕边界到安全区域距离
const { safeAreaInsets } = uni.getSystemInfoSync()
const author = ref('菲鸽')
const description = ref(
  'unibest 是一个集成了多种工具和技术的 uniapp 开发模板,由 uniapp + Vue3 + Ts + Vite4 + UnoCss + UniUI + VSCode 构建,模板具有代码提示、自动格式化、统一配置、代码片段等功能,并内置了许多常用的基本组件和基本功能,让你编写 uniapp 拥有 best 体验。',
)
// 测试 uni API 自动引入
const getAllMenus = async () => {
  const menuList = await getAllMenusApi()
  console.error(menuList)
}
onLoad(() => {
  console.log(author)
  console.log(TestEnum.A)
  // getAllMenus()
})
const menuList = reactive([
@@ -161,7 +160,7 @@
])
function handleUserInfo() {
  console.error('12121')
  getAllMenus()
}