no message
Former-commit-id: 3c8b725b82460ee3a1b5c2ff54bdd8e6d78b63c0 Former-commit-id: 3ad6a05be509ffe7268381c01c32074662f0d0af Former-commit-id: 6a8bc07bb5bd109d413d40743c0b0751fcd09caa
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user