File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 6
6
< meta name ="viewport " content ="width=device-width,initial-scale=1.0 ">
7
7
< link rel ="icon " href ="<%= BASE_URL %>favicon.ico ">
8
8
< title > < %= htmlWebpackPlugin.options.title %> </ title >
9
- < script src ="https://cdn.bootcdn .net/ajax/libs/ vue/ 2.6.11/vue.min.js "> </ script >
10
- < script src ="https://cdn.bootcdn .net/ajax/libs/ axios/ 0.19.2/axios.min.js "> </ script >
11
- < script src ="https://cdn.bootcdn .net/ajax/libs/ marked/ 1.1.0/marked.min.js "> </ script >
12
- < script src ="https://cdn.bootcdn .net/ajax/libs/ vue-router/ 3.1.6/vue-router.min.js "> </ script >
9
+ < script src ="https://cdn.jsdelivr .net/npm/ vue@ 2.6.11/dist /vue.min.js "> </ script >
10
+ < script src ="https://cdn.jsdelivr .net/npm/ axios@ 0.19.2/dist /axios.min.js "> </ script >
11
+ < script src ="https://cdn.jsdelivr .net/npm/ marked@ 1.1.0/marked.min.js "> </ script >
12
+ < script src ="https://cdn.jsdelivr .net/npm/ vue-router@ 3.1.6/dist /vue-router.min.js "> </ script >
13
13
< script src ="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.0.3/highlight.min.js "> </ script >
14
- < script src ="https://cdn.bootcdn .net/ajax/libs/ moment.js/ 2.26.0/moment.min.js "> </ script >
14
+ < script src ="https://cdn.jsdelivr .net/npm/ moment@ 2.26.0/moment.min.js "> </ script >
15
15
< script src ="https://cdn.jsdelivr.net/npm/ant-design-vue@1.6.2/dist/antd.min.js "> </ script >
16
16
<!-- 引入css -->
17
17
< link href ="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.0.3/styles/monokai-sublime.min.css " rel ="stylesheet ">
Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ export default {
87
87
</script >
88
88
89
89
<style lang="scss">
90
+ body {
91
+ overflow-y : scroll ;
92
+ }
90
93
.main-body {
91
94
background-color : #f6f6f6 ;
92
95
.content {
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ export default {
112
112
text-align : left ;
113
113
padding : 1rem ;
114
114
font-size : 1rem ;
115
- img {
115
+ & / deep / img {
116
116
width : 100% ;
117
117
padding : 1rem 0 ;
118
118
}
Original file line number Diff line number Diff line change 1
1
const serverUrl = 'https://immortalboy.cn'
2
2
const imgServerUrl = 'https://iamge.immortalboy.cn'
3
- const baseUrl = 'https://immortalboy.cn/api/blog'
4
- // const baseUrl = '/api/blog'
3
+ const baseUrl = process . env . NODE_ENV === 'production' ?
4
+ 'https://immortalboy.cn/api/blog'
5
+ : '/api/blog'
5
6
6
7
const servicePath = {
7
8
visitorLogin : baseUrl + '/comment/visitorLogin' , // 评论接口:获取文章列表
You can’t perform that action at this time.
0 commit comments