This commit is contained in:
20932067@zju.edu.cn 2021-03-20 16:36:36 +08:00
parent 024f1736ef
commit ffe8a93043
5 changed files with 10 additions and 29 deletions

View File

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

View File

@ -8,7 +8,9 @@
<el-table-column
label="提交时间"
width="180">
<template slot-scope="scope" v-text="timeChange(scope.row.cCreateTime)"></template>
<template slot-scope="scope">
<span v-text="timeChange(scope.row.cCreateTime)"></span>
</template>
</el-table-column>
<el-table-column
prop="cName"
@ -44,7 +46,7 @@ export default {
this.getSuggestList();
},
methods:{
timeChange(tiem){
timeChange(time){
return formData(time, 'yyyy-MM-dd hh:mm:ss')
},
getSuggestList(){

View File

@ -119,7 +119,7 @@ export default {
repassword: this.forgotForm.repassword
}
// const baseUrl = 'http://localhost:8083/api/'
const baseUrl = 'http://api.tomey.live/api/'
const baseUrl = 'https://api.tomey.live/api/'
axios({
method: 'post',
url: baseUrl + 'forgot',

View File

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

View File

@ -58,26 +58,6 @@ export default {
showClose:true
});
}
/*if(flag){
let loading = this.$loading({lock:true,text:'玩命加载中...'});
axios.post(`/admin/submitSuggest`,sugForm).then(response=>{
let res = response.data;
loading.close();
if(res.status=='0'){
this.$message({
message: '感谢您的反馈信息,我们会努力做好!',
type: 'success',
showClose:true
});
}else{
console.log(res.msg);
}
}).catch(err=>{
console.log(err);
})
}*/
if (flag){
let data
@ -88,7 +68,7 @@ export default {
}
console.log(data)
// const baseUrl = 'http://localhost:8083/api/'
const baseUrl = 'http://api.tomey.live/api/'
const baseUrl = 'https://api.tomey.live/api/'
axios({
method: 'post',
url: baseUrl + 'addcomplaint',