no message

Former-commit-id: 3c8b725b82460ee3a1b5c2ff54bdd8e6d78b63c0
Former-commit-id: 3ad6a05be509ffe7268381c01c32074662f0d0af
Former-commit-id: 6a8bc07bb5bd109d413d40743c0b0751fcd09caa
This commit is contained in:
李杨
2018-01-25 08:00:48 +08:00
parent 74cf24de46
commit ef8cb3c8e7
6 changed files with 6 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ export default {
}, },
// 从 url 加载原始数据 // 从 url 加载原始数据
async getReadme (name) { async getReadme (name) {
const { data } = await this.$axios.get(name) const { data } = await this.$http.get(name)
return this.marked(data) return this.marked(data)
}, },
marked (data) { marked (data) {

View File

@@ -62,7 +62,7 @@ export default {
submit () { submit () {
this.$refs.loginForm.validate((valid) => { this.$refs.loginForm.validate((valid) => {
if (valid) { if (valid) {
this.$axios({ this.$http({
method: 'post', method: 'post',
url: '/login', url: '/login',
data: { data: {

View File

@@ -36,7 +36,7 @@ export default {
}, },
methods: { methods: {
async getReadme () { async getReadme () {
const { data } = await this.$axios.get('/static/markdownFiles/demo/baseMarkdowmFile.md') const { data } = await this.$http.get('/static/markdownFiles/demo/baseMarkdowmFile.md')
return data return data
} }
} }

View File

@@ -41,7 +41,7 @@ export default {
}, },
methods: { methods: {
async getReadme () { async getReadme () {
const { data } = await this.$axios.get('/static/markdownFiles/demo/baseMarkdowmFile.md') const { data } = await this.$http.get('/static/markdownFiles/demo/baseMarkdowmFile.md')
return data return data
} }
} }

View File

@@ -32,7 +32,7 @@ export default {
}, },
methods: { methods: {
ajax () { ajax () {
this.$axios.get('/api/demo/001') this.$http.get('/api/demo/001')
.then(res => { .then(res => {
this.table.columns = Object.keys(res.data.list[0]).map(e => ({ this.table.columns = Object.keys(res.data.list[0]).map(e => ({
label: e, label: e,

View File

@@ -1,4 +1,4 @@
import Vue from 'vue' import Vue from 'vue'
import axios from 'axios' import axios from 'axios'
Vue.prototype.$axios = axios Vue.prototype.$http = axios