Skip to content

Commit

Permalink
fix(custom): 修复基础路径
Browse files Browse the repository at this point in the history
  • Loading branch information
gitboyzcf committed Jul 16, 2024
1 parent 580a194 commit 6e376b9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*.html text eol=lf
*.css text eol=lf
*.js text eol=lf
*.scss text eol=lf
*.vue text eol=lf
*.hbs text eol=lf
*.sh text eol=lf
*.md text eol=lf
*.json text eol=lf
*.yml text eol=lf
.browserslistrc text eol=lf
.editorconfig text eol=lf
.eslintignore text eol=lf
.gitattributes text eol=lf
LICENSE text eol=lf
*.conf text eol=lf
1 change: 1 addition & 0 deletions manifest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { loadEnv } from 'vite'
const env = loadEnv(process.env.NODE_ENV, path.resolve(process.cwd()))
const { VITE_APP_TITLE, VITE_UNI_APPID, VITE_WX_APPID, VITE_APP_PUBLIC_BASE } = env

console.log(env);
export default defineManifestConfig({
name: VITE_APP_TITLE,
appid: VITE_UNI_APPID,
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"locale": "zh-Hans",
"h5": {
"router": {
"base": "/"
"base": "./"
}
}
}

0 comments on commit 6e376b9

Please sign in to comment.