mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
creating the controller/view/api base
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
export default {
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
person: null,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
testsearch: function() {
|
||||
|
||||
}
|
||||
},
|
||||
created(){
|
||||
this.$parent.testsearch().then((res) => {
|
||||
this.person = res.data;
|
||||
});
|
||||
},
|
||||
|
||||
template: `
|
||||
<div>
|
||||
<h1>test</h1>
|
||||
<code>{{JSON.stringify(person)}}</code>
|
||||
</div>
|
||||
`,
|
||||
};
|
||||
Reference in New Issue
Block a user