feat: 生产环境路径修改

This commit is contained in:
wang_fan_w 2024-07-25 00:07:18 +08:00
parent 324a241319
commit 8b127b10cf
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);