From 8b127b10cf76462dcbdb60030ab09e54591fe19c Mon Sep 17 00:00:00 2001 From: wang_fan_w <2547096351@qq.com> Date: Thu, 25 Jul 2024 00:07:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- src/directives/modules/custom.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/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);