细节修改
This commit is contained in:
parent
cde38e8eb7
commit
b6345fb326
|
|
@ -2,8 +2,9 @@ import axios from 'axios'
|
||||||
// import {getHeaders} from '../utils/token'
|
// 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 = 'https://api.tomey.live/api/'
|
||||||
// const baseUrl = 'http://mytwins.top/api/'
|
// const baseUrl = 'http://mytwins.top/api/'
|
||||||
|
const baseUrl = 'https://expapi.odliken.top/api/'
|
||||||
class HttpRequest {
|
class HttpRequest {
|
||||||
constructor (baseUrl) {
|
constructor (baseUrl) {
|
||||||
this.baseUrl = baseUrl
|
this.baseUrl = baseUrl
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,8 @@ export default {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
// const baseUrl = 'http://localhost:8083/api/'
|
// const baseUrl = 'http://localhost:8083/api/'
|
||||||
// const baseUrl = 'https://api.tomey.live/api/'
|
// const baseUrl = 'https://api.tomey.live/api/'
|
||||||
const baseUrl = 'http://mytwins.top/api/'
|
const baseUrl = 'https://expapi.odliken.top/api/'
|
||||||
|
// const baseUrl = 'http://mytwins.top/api/'
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: baseUrl + 'login',
|
url: baseUrl + 'login',
|
||||||
|
|
|
||||||
|
|
@ -119,8 +119,9 @@ export default {
|
||||||
repassword: this.forgotForm.repassword
|
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 = 'https://api.tomey.live/api/
|
||||||
const baseUrl = 'http://mytwins.top/api/'
|
const baseUrl = 'https://expapi.odliken.top/api/'
|
||||||
|
// const baseUrl = 'http://mytwins.top/api/'
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: baseUrl + 'forgot',
|
url: baseUrl + 'forgot',
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,8 @@ export default {
|
||||||
userLogin (data) {
|
userLogin (data) {
|
||||||
// const baseUrl = 'http://localhost:8083/api/'
|
// const baseUrl = 'http://localhost:8083/api/'
|
||||||
// const baseUrl = 'https://api.tomey.live/api/'
|
// const baseUrl = 'https://api.tomey.live/api/'
|
||||||
const baseUrl = 'http://mytwins.top/api/'
|
const baseUrl = 'https://expapi.odliken.top/api/'
|
||||||
|
// const baseUrl = 'http://mytwins.top/api/'
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: baseUrl + 'login',
|
url: baseUrl + 'login',
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,8 @@ export default {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
// const baseUrl = 'http://localhost:8083/api/'
|
// const baseUrl = 'http://localhost:8083/api/'
|
||||||
// const baseUrl = 'https://api.tomey.live/api/'
|
// const baseUrl = 'https://api.tomey.live/api/'
|
||||||
const baseUrl = 'http://mytwins.top/api/'
|
const baseUrl = 'https://expapi.odliken.top/api/'
|
||||||
|
// const baseUrl = 'http://mytwins/.top/api/'
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: baseUrl + 'register',
|
url: baseUrl + 'register',
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,8 @@ export default {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
// const baseUrl = 'http://localhost:8083/api/'
|
// const baseUrl = 'http://localhost:8083/api/'
|
||||||
// const baseUrl = 'https://api.tomey.live/api/'
|
// const baseUrl = 'https://api.tomey.live/api/'
|
||||||
const baseUrl = 'http://mytwins.top/api/'
|
const baseUrl = 'https://expapi.odliken.top/api/'
|
||||||
|
// const baseUrl = 'http://mytwins.top/api/'
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: baseUrl + 'addcomplaint',
|
url: baseUrl + 'addcomplaint',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue