diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
index e60cf41..8c12579 100644
--- a/src/views/HomeView.vue
+++ b/src/views/HomeView.vue
@@ -6,27 +6,34 @@
博客
- 源码
+ 源码
-
+
- 陕ICP备2023001488号 | 陕公网安备 61072902000127号
+ Qing | 陕ICP备2023001488号 | 陕公网安备 61072902000127号
@@ -48,15 +55,16 @@ export default {
return{
url:null,
jsonData:null,
+ radio:2,
}
},
methods:{
getJson(){
- console.log(this.url);
+ console.log(this.radio)
if(this.url!==null){
var that=this;
axios({
- method: 'post',
+ method: this.radio===2?'post':'get',
// 请求的地址
url: this.url,
}).then( (res)=> {
@@ -73,6 +81,9 @@ export default {
return false;
}
+ },
+ radioChange(){
+ this.getJson();
}
}
}