You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
937 B
37 lines
937 B
//公用
|
|
GoUse(function () {
|
|
Vue.component('test-component', {
|
|
template: '<div>test-component</div>'
|
|
});
|
|
});
|
|
|
|
//分页面
|
|
GoUseRegistered("index", function (query) {
|
|
console.log("query:", query);
|
|
// 定义一个名为 button-counter 的新组件
|
|
var vue = new Vue({
|
|
el: "#app",
|
|
data: {
|
|
code: -1,
|
|
data: "",
|
|
a: ""
|
|
},
|
|
});
|
|
axios.defaults.baseURL = "http://127.0.0.1:8080/";
|
|
axios.get('/test?t=123123123')
|
|
.then(function (result) {
|
|
console.log(JSON.stringify(result.data));
|
|
var data = result.data;
|
|
vue.code = data.code;
|
|
vue.data = data.data;
|
|
vue.a = 123;
|
|
})
|
|
.catch(function (error) {
|
|
console.log("err");
|
|
console.log(error);
|
|
})
|
|
.then(function () {
|
|
// always executed
|
|
});
|
|
console.log("end");
|
|
});
|