完成vue+amis的前端版本
This commit is contained in:
23
client/src/views/Home.vue
Normal file
23
client/src/views/Home.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<script setup>
|
||||
import {onMounted} from 'vue'
|
||||
import {amisRender} from '../utils.js'
|
||||
|
||||
onMounted(() => {
|
||||
amisRender(
|
||||
'#amis-home',
|
||||
information => {
|
||||
return {
|
||||
type: 'page',
|
||||
body: 'Home'
|
||||
}
|
||||
},
|
||||
)
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div id="amis-home"></div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
Reference in New Issue
Block a user