Skip to content

Commit

Permalink
添加了一个使用node模块的案例,该模块的作用是分辨测试环境和运行环境,最终发现该node模块无法使用
Browse files Browse the repository at this point in the history
  • Loading branch information
ihrskyfish committed Sep 1, 2024
1 parent cc594fd commit ca02cb8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# just a flag
ENV = 'development'

# base api
VUE_APP_BASE_API = '/api'

# base url
VUE_APP_URL='http://localhost:8080/'


5 changes: 5 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# just a flag
ENV = 'production'

# base api
VUE_APP_BASE_API = '/api'
4 changes: 3 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,13 @@ function main2() {

main2();
test444().then((r) => {
console.log("then",r);
console.log("then", r);
});



toast("hello worldddddddddddddddddddddddddddddddddddddddd");
toast(process.env.VUE_APP_API_URL);



0 comments on commit ca02cb8

Please sign in to comment.