Skip to content

Commit 016c354

Browse files
committed
🐛 修复路由和接口名冲突问题,修改后端接口名称
1 parent 9a9e883 commit 016c354

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/components/Install.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default {
8383
if (valid) {
8484
this.loading = true;
8585
let that = this;
86-
this.$http.post('/install', qs.stringify(this.form)).then((response) => {
86+
this.$http.post('/doInstall', qs.stringify(this.form)).then((response) => {
8787
this.loading = false;
8888
let data = response.data;
8989
if (data.code === 0) {

Diff for: src/components/Login.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default {
8181
handleSubmit() {
8282
this.$refs.loginForm.validate((valid) => {
8383
if (valid) {
84-
this.$http.post('/login', qs.stringify(this.loginForm)).then((response) => {
84+
this.$http.post('/doLogin', qs.stringify(this.loginForm)).then((response) => {
8585
this.$message({
8686
message: response.data.msg,
8787
type: 'success',

0 commit comments

Comments
 (0)