Skip to content

Commit ac5bfc5

Browse files
committed
fix copyright page url not contains host location bug
1 parent 8de104e commit ac5bfc5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dimple-ui-blog/.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 开发环境配置
22
ENV = 'development'
3-
BASE_URL = 'http://localhost'
3+
VUE_APP_BASE_URL = 'http://localhost'
44

55
# 开发环境
66
VUE_APP_BASE_API = '/dev-api'

dimple-ui-blog/.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 生产环境配置
22
ENV = 'production'
3-
BASE_URL = 'https://www.bianxf.com'
3+
VUE_APP_BASE_URL = 'https://www.bianxf.com'
44
# 生产环境
55
VUE_APP_BASE_API = '/prod-api'

dimple-ui-blog/.env.staging

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ NODE_ENV = production
22

33
# 测试环境配置
44
ENV = 'staging'
5-
5+
VUE_APP_BASE_URL = 'https://www.bianxf.com'
66
# 测试环境
77
VUE_APP_BASE_API = '/stage-api'

dimple-ui-blog/src/views/article/articleDetail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default {
136136
return "";
137137
},
138138
url() {
139-
return `${process.env.BASE_URL}/app/article/${this.article.id}`;
139+
return `${process.env.VUE_APP_BASE_URL}/app/article/${this.article.id}`;
140140
},
141141
likeText() {
142142
return this.article.liked ? "已赞" : "";

0 commit comments

Comments
 (0)