Skip to content

Commit 1bd1181

Browse files
authored
Merge pull request #39 from ShanghaitechGeekPie/master
hotfix: layout update
2 parents 41086fd + be3618f commit 1bd1181

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
</div>
99
<div>
1010
<ActivityBanner :Enable="true">
11-
OhMyGPA 论坛正在试运营! 访问 <a
11+
OhMyGPA 论坛试运营! 访问 <a
1212
href="https://ohmygpa.icu/"
1313
target="_blank"
1414
class="inline-link"
15-
>https://ohmygpa.icu/</a
15+
>ohmygpa.icu</a
1616
> 查看详情!
1717
</ActivityBanner>
1818
</div>
1919

20-
<router-view :key="$route.path" />
20+
<router-view :key="$route.path" class="mt-15 sm:mt-0" />
2121
<v-snackbar
2222
v-model="snackbar.show"
2323
:color="snackbar.color"

vue.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ module.exports = {
2525
hot: true,
2626
port: 8000,
2727
compress: true,
28+
proxy: {
29+
'/v1': {
30+
target: 'http://coursebench.org',
31+
changeOrigin: true,
32+
secure: false,
33+
pathRewrite: {
34+
// '^/v1': '' // 如果后端不需要/v1前缀,可以移除它
35+
}
36+
}
37+
}
2838
},
2939
transpileDependencies: ['vuetify'],
3040
configureWebpack: {

0 commit comments

Comments
 (0)