Skip to content

Commit 6e376b9

Browse files
committed
fix(custom): 修复基础路径
1 parent 580a194 commit 6e376b9

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

Diff for: .gitattributes

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
*.html text eol=lf
2+
*.css text eol=lf
3+
*.js text eol=lf
4+
*.scss text eol=lf
5+
*.vue text eol=lf
6+
*.hbs text eol=lf
7+
*.sh text eol=lf
8+
*.md text eol=lf
9+
*.json text eol=lf
10+
*.yml text eol=lf
11+
.browserslistrc text eol=lf
12+
.editorconfig text eol=lf
13+
.eslintignore text eol=lf
14+
.gitattributes text eol=lf
15+
LICENSE text eol=lf
16+
*.conf text eol=lf

Diff for: manifest.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { loadEnv } from 'vite'
77
const env = loadEnv(process.env.NODE_ENV, path.resolve(process.cwd()))
88
const { VITE_APP_TITLE, VITE_UNI_APPID, VITE_WX_APPID, VITE_APP_PUBLIC_BASE } = env
99

10+
console.log(env);
1011
export default defineManifestConfig({
1112
name: VITE_APP_TITLE,
1213
appid: VITE_UNI_APPID,

Diff for: src/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"locale": "zh-Hans",
7575
"h5": {
7676
"router": {
77-
"base": "/"
77+
"base": "./"
7878
}
7979
}
8080
}

0 commit comments

Comments
 (0)