diff --git a/src/components/Article.vue b/src/components/Article.vue
index f170dbffe69795fd4f8e9d7de9309c72be08c6a3..5d52ca6873b19bc0bf720c2ceec98a135ccbfdfe 100644
--- a/src/components/Article.vue
+++ b/src/components/Article.vue
@@ -217,7 +217,6 @@ import Email from '@/components/email/Email'
import VueMarkdown from 'vue-markdown'
import ArticleComment from '@/comment/ArticleComment'
import EchartWeather from '@/weather/EchartWeather'
-import axios from 'axios'
export default {
components: {
VueMarkdown, // 显示markdown的组件
@@ -447,7 +446,7 @@ export default {
parseInt(page + (that.currentPage - 1) * that.splitLength)
]
// 提交数据 page从0开始
- axios
+ that.$axios
.post(that.baseurl + 'article/index/', {
value: page + (that.currentPage - 1) * that.splitLength
// 传入索引
@@ -475,7 +474,7 @@ export default {
created: function () {
// 初始化
let that = this
- axios
+ that.$axios
.get(that.baseurl + 'article/index/')
.then((res) => {
let resdata = res.data
diff --git a/src/components/Csslearn.vue b/src/components/Csslearn.vue
index c4597aca62aaa07286f6d5c405347dc3190ee7f9..fc6f9c23b49368e069f2ac0dfc3cf096e9c4be5c 100644
--- a/src/components/Csslearn.vue
+++ b/src/components/Csslearn.vue
@@ -28,7 +28,6 @@