Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix:NOOE_ENV拼写错误 #239

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion datasophon-ui/.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @LastEditTime: 2022-07-16 16:28:29
* @FilePath: \ddh-ui\.env
-->
VUE_APP_PUBLIC_PATH=/ddh
VUE_APP_PUBLIC_PATH=
VUE_APP_NAME=DataSophon
VUE_APP_ROUTES_KEY=admin.routes
VUE_APP_PERMISSIONS_KEY=admin.permissions
Expand Down
11 changes: 4 additions & 7 deletions datasophon-ui/src/api/baseUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@
*/
export default {
path() {
let path = process.env.VUE_APP_API_BASE_URL
console.log(path, 'path地址', process.env.NOOE_ENV)
if(process.env.NOOE_ENV === 'production') {
console.log(1)
}else {
path = ''
let path = ''
if(process.env.NODE_ENV === 'production') {
path = process.env.VUE_APP_API_BASE_URL
}

console.log(path, 'path地址', process.env.NODE_ENV)
return path
}
}