Skip to content

Commit

Permalink
🐛 修复路由和接口名冲突问题,修改后端接口名称
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaojun1998 committed Sep 20, 2021
1 parent 9a9e883 commit 016c354
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Install.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default {
if (valid) {
this.loading = true;
let that = this;
this.$http.post('/install', qs.stringify(this.form)).then((response) => {
this.$http.post('/doInstall', qs.stringify(this.form)).then((response) => {
this.loading = false;
let data = response.data;
if (data.code === 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default {
handleSubmit() {
this.$refs.loginForm.validate((valid) => {
if (valid) {
this.$http.post('/login', qs.stringify(this.loginForm)).then((response) => {
this.$http.post('/doLogin', qs.stringify(this.loginForm)).then((response) => {
this.$message({
message: response.data.msg,
type: 'success',
Expand Down

0 comments on commit 016c354

Please sign in to comment.