移除传统的全局混入改为使用Vue3的全局暴露

This commit is contained in:
yuantao
2025-09-29 14:31:00 +08:00
parent 6f0bb2f949
commit ff550db7b6
6 changed files with 36 additions and 36 deletions

View File

@@ -27,8 +27,6 @@
├── components/ # 公共组件
├── lib/ # 第三方库
│ └── luch-request/ # luch-request 网络请求库
├── mixins/ # Vue 混入
│ └── global.ts # 全局混入
├── pages/ # 主包页面
│ └── index/ # 首页
│ └── index.vue # 首页页面
@@ -98,7 +96,7 @@ npm install
## 静态资源
* 静态资源变量 `ASSETSURL` 已进行全局混入,可以在 `<template></template>` 中直接使用。
* 静态资源变量 `ASSETSURL` 已进行全局暴露,可以在 `<template></template>` 中直接使用。
* 所有静态资源URL应该使用 `ASSETSURL` 进行拼接,如:`${ASSETSURL}simple.png`
## 工具函数 (tool.ts)