diff --git a/.env.production b/.env.production index 59240f4..bbfa6b5 100644 --- a/.env.production +++ b/.env.production @@ -2,6 +2,6 @@ VITE_USER_NODE_ENV = production # 打包路径 (就是网站前缀, 例如部署到 http://dcodes.gitee.io/SnowAdmin/ 域名下, 就需要填写 /SnowAdmin/), 一般填一个斜杠 / -VITE_PUBLIC_PATH = '/SnowAdmin/' +VITE_PUBLIC_PATH = '/' VITE_GLOB_APP_TITLE = SnowAdmin diff --git a/README.md b/README.md index 17a3f4d..0059fab 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ SnowAdmin 一款基于 Vue3、TypeScript、Vite5、Pinia、Arco-Design 开源的 - 项目更新日志:建设中 -- 项目文档地址:建设中 +- 项目文档地址:http://101.126.93.137:81/ ### 项目功能 🔨 diff --git a/src/directives/modules/custom.ts b/src/directives/modules/custom.ts index c6f423c..c88257a 100644 --- a/src/directives/modules/custom.ts +++ b/src/directives/modules/custom.ts @@ -1,7 +1,7 @@ import { Directive } from "vue"; const custom: Directive = { - mounted(el, binding, vnode) { + mounted(el, binding) { el.__onClick__ = () => { let { goodsId, event } = binding.value; event(goodsId);