去除js对绝对地址的依赖,为日志添加排序选项

This commit is contained in:
F嘉阳
2018-02-23 16:29:42 +08:00
parent a50c33375d
commit 143f419020
7 changed files with 24 additions and 24 deletions

View File

@@ -40,7 +40,7 @@ var Main = {
mounted() {
this.$nextTick(() => {
var that = this;
axios.get('http://localhost:8080/cms/home/findvlog')
axios.get(getRootPath_web()+'/home/findvlog')
.then(function (response) {
console.log(response.data);
that.logData = response.data;
@@ -48,7 +48,7 @@ var Main = {
.catch(function (error) {
console.log(error);
});
axios.get('http://localhost:8080/cms/home/findvfeedback')
axios.get(getRootPath_web()+'/home/findvfeedback')
.then(function (response) {
console.log(response.data);
that.feedbackData = response.data;
@@ -61,7 +61,7 @@ var Main = {
},
methods: {
ClickToJump(targe){
window.location.href="http://localhost:8080/cms/home/" + targe;
window.location.href=getRootPath_web()+"/" + targe;
},
handleSelect(key, keyPath) {
console.log(key, keyPath);