This commit is contained in:
parent
e15d658470
commit
7d6523c642
|
|
@ -25,7 +25,7 @@ module.exports = {
|
|||
// Various Dev Server settings
|
||||
host: 'localhost', // can be overwritten by process.env.HOST
|
||||
//host: '192.168.43.50', // can be overwritten by process.env.HOST
|
||||
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
||||
port: 80, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
||||
autoOpenBrowser: false,
|
||||
errorOverlay: true,
|
||||
notifyOnErrors: true,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import axios from 'axios'
|
||||
// import {getHeaders} from '../utils/token'
|
||||
|
||||
// const baseUrl = 'http://localhost:8083/api/'
|
||||
const baseUrl = 'https://api.tomey.live/api/'
|
||||
const baseUrl = 'http://localhost:8083/api/'
|
||||
// const baseUrl = 'https://api.tomey.live/api/'
|
||||
class HttpRequest {
|
||||
constructor (baseUrl) {
|
||||
this.baseUrl = baseUrl
|
||||
|
|
|
|||
|
|
@ -69,8 +69,8 @@ export default {
|
|||
submitForm () {
|
||||
this.$refs.adminForm.validate((valid) => {
|
||||
if (valid) {
|
||||
// const baseUrl = 'http://localhost:8083/api/'
|
||||
const baseUrl = 'https://api.tomey.live/api/'
|
||||
const baseUrl = 'http://localhost:8083/api/'
|
||||
// const baseUrl = 'https://api.tomey.live/api/'
|
||||
axios({
|
||||
method: 'post',
|
||||
url: baseUrl + 'login',
|
||||
|
|
|
|||
|
|
@ -118,8 +118,8 @@ export default {
|
|||
password: this.forgotForm.password,
|
||||
repassword: this.forgotForm.repassword
|
||||
}
|
||||
// const baseUrl = 'http://localhost:8083/api/'
|
||||
const baseUrl = 'https://api.tomey.live/api/'
|
||||
const baseUrl = 'http://localhost:8083/api/'
|
||||
// const baseUrl = 'https://api.tomey.live/api/'
|
||||
axios({
|
||||
method: 'post',
|
||||
url: baseUrl + 'forgot',
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
userLogin (data) {
|
||||
// const baseUrl = 'http://localhost:8083/api/'
|
||||
const baseUrl = 'https://api.tomey.live/api/'
|
||||
const baseUrl = 'http://localhost:8083/api/'
|
||||
// const baseUrl = 'https://api.tomey.live/api/'
|
||||
axios({
|
||||
method: 'post',
|
||||
url: baseUrl + 'login',
|
||||
|
|
|
|||
|
|
@ -143,8 +143,8 @@ export default {
|
|||
submitForm (formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
// const baseUrl = 'http://localhost:8083/api/'
|
||||
const baseUrl = 'https://api.tomey.live/api/'
|
||||
const baseUrl = 'http://localhost:8083/api/'
|
||||
// const baseUrl = 'https://api.tomey.live/api/'
|
||||
axios({
|
||||
method: 'post',
|
||||
url: baseUrl + 'register',
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@ export default {
|
|||
content: sugForm.suggestText,
|
||||
}
|
||||
console.log(data)
|
||||
// const baseUrl = 'http://localhost:8083/api/'
|
||||
const baseUrl = 'https://api.tomey.live/api/'
|
||||
const baseUrl = 'http://localhost:8083/api/'
|
||||
// const baseUrl = 'https://api.tomey.live/api/'
|
||||
axios({
|
||||
method: 'post',
|
||||
url: baseUrl + 'addcomplaint',
|
||||
|
|
|
|||
Loading…
Reference in New Issue