From 19d81dd4158ff961ac899aa04223713579326dc6 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Sun, 8 Feb 2026 21:24:34 +0800 Subject: [PATCH] sc --- src/manifest.json | 13 +++++++++++++ vite.config.js | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/manifest.json b/src/manifest.json index 163e4fa..4db84f2 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -41,6 +41,19 @@ } }, "quickapp": {}, + "h5": { + "title": "小程序管理后台", + "domain": "", + "router": { + "mode": "hash", + "base": "/applet-manage-h5/" + }, + "optimization": { + "treeShaking": { + "enable": true + } + } + }, "mp-weixin": { "appid": "wx26785eb35bd950b0", "setting": { diff --git a/vite.config.js b/vite.config.js index b7dc294..c8484df 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,12 +2,13 @@ import { defineConfig } from 'vite' import uni from '@dcloudio/vite-plugin-uni' export default defineConfig({ + base: '/applet-manage-h5/', plugins: [ uni() ], resolve: { alias: { - // 确保uni-app使用内置的Vue版本 + '@': '/src', 'vue': '@dcloudio/uni-h5-vue' } }