This commit is contained in:
20932067@zju.edu.cn 2021-06-01 17:52:39 +08:00
parent 7d6523c642
commit 6bba90a1c2
6 changed files with 12 additions and 6 deletions

View File

@ -1,8 +1,9 @@
import axios from 'axios'
// import {getHeaders} from '../utils/token'
const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'https://api.tomey.live/api/'
const baseUrl = 'http://mytwins.top/api/'
class HttpRequest {
constructor (baseUrl) {
this.baseUrl = baseUrl

View File

@ -69,8 +69,9 @@ export default {
submitForm () {
this.$refs.adminForm.validate((valid) => {
if (valid) {
const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'https://api.tomey.live/api/'
const baseUrl = 'http://mytwins.top/api/'
axios({
method: 'post',
url: baseUrl + 'login',

View File

@ -118,8 +118,9 @@ export default {
password: this.forgotForm.password,
repassword: this.forgotForm.repassword
}
const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'https://api.tomey.live/api/'
const baseUrl = 'http://mytwins.top/api/'
axios({
method: 'post',
url: baseUrl + 'forgot',

View File

@ -60,8 +60,9 @@ export default {
},
methods: {
userLogin (data) {
const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'https://api.tomey.live/api/'
const baseUrl = 'http://mytwins.top/api/'
axios({
method: 'post',
url: baseUrl + 'login',

View File

@ -143,8 +143,9 @@ export default {
submitForm (formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'https://api.tomey.live/api/'
const baseUrl = 'http://mytwins.top/api/'
axios({
method: 'post',
url: baseUrl + 'register',

View File

@ -68,8 +68,9 @@ export default {
content: sugForm.suggestText,
}
console.log(data)
const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'http://localhost:8083/api/'
// const baseUrl = 'https://api.tomey.live/api/'
const baseUrl = 'http://mytwins.top/api/'
axios({
method: 'post',
url: baseUrl + 'addcomplaint',