较少前端数据预读取量,提高访问速度

This commit is contained in:
2018-05-01 17:06:41 +08:00
parent 47a926e97d
commit 3e18c8e4ff
2 changed files with 9 additions and 4 deletions

View File

@@ -196,6 +196,12 @@ var Main = {
.catch(function (error) { .catch(function (error) {
console.log(error); console.log(error);
}); });
})
},
methods: {
showVersion(){
let that = this;
axios.get(getRootPath_web() + '/home/findallversion') axios.get(getRootPath_web() + '/home/findallversion')
.then(function (response) { .then(function (response) {
console.log(response.data); console.log(response.data);
@@ -205,9 +211,8 @@ var Main = {
.catch(function (error) { .catch(function (error) {
console.log(error); console.log(error);
}); });
}) this.dialogTableVisible = true;
}, },
methods: {
getFileList() { getFileList() {
let that = this; let that = this;
axios.get(getRootPath_web() + '/home/download/findone') axios.get(getRootPath_web() + '/home/download/findone')

View File

@@ -41,7 +41,7 @@
<li><strong>代码开发 </strong>符嘉阳</li> <li><strong>代码开发 </strong>符嘉阳</li>
</ul> </ul>
<br> <br>
<el-button type="text" @click="dialogTableVisible = true">查看更新日志</el-button> <el-button type="text" @click="showVersion()">查看更新日志</el-button>
<el-dialog title="GitLab更新日志" <el-dialog title="GitLab更新日志"
:visible.sync="dialogTableVisible" :visible.sync="dialogTableVisible"