This commit is contained in:
parent
7d6523c642
commit
6bba90a1c2
|
|
@ -1,8 +1,9 @@
|
||||||
import axios from 'axios'
|
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/'
|
||||||
class HttpRequest {
|
class HttpRequest {
|
||||||
constructor (baseUrl) {
|
constructor (baseUrl) {
|
||||||
this.baseUrl = baseUrl
|
this.baseUrl = baseUrl
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,9 @@ export default {
|
||||||
submitForm () {
|
submitForm () {
|
||||||
this.$refs.adminForm.validate((valid) => {
|
this.$refs.adminForm.validate((valid) => {
|
||||||
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/'
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: baseUrl + 'login',
|
url: baseUrl + 'login',
|
||||||
|
|
|
||||||
|
|
@ -118,8 +118,9 @@ export default {
|
||||||
password: this.forgotForm.password,
|
password: this.forgotForm.password,
|
||||||
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/'
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: baseUrl + 'forgot',
|
url: baseUrl + 'forgot',
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,9 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
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/'
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: baseUrl + 'login',
|
url: baseUrl + 'login',
|
||||||
|
|
|
||||||
|
|
@ -143,8 +143,9 @@ export default {
|
||||||
submitForm (formName) {
|
submitForm (formName) {
|
||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
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/'
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: baseUrl + 'register',
|
url: baseUrl + 'register',
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,9 @@ export default {
|
||||||
content: sugForm.suggestText,
|
content: sugForm.suggestText,
|
||||||
}
|
}
|
||||||
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/'
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: baseUrl + 'addcomplaint',
|
url: baseUrl + 'addcomplaint',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue