登录控制器

This commit is contained in:
橙子
2021-10-16 14:48:55 +08:00
parent 6a492168ed
commit b2e8441194
10 changed files with 275 additions and 51 deletions

View File

@@ -1,29 +1,18 @@
<template>
<v-card class="mx-auto" width="100%">
<v-btn color="primary" dark class="mb-2 mx-2" @click="dialog = true">
添加新项
</v-btn>
<v-btn color="primary" dark class="mb-2 mx-2" @click="dialog = true">
删除所选
</v-btn>
<ccTreeview :items="Menuitems"></ccTreeview>
<ccTreeview></ccTreeview>
</v-card>
</template>
<script>
import menuApi from "../api/MenuApi";
export default {
created() {
this.init();
},
data: () => ({
Menuitems: [],
}),
methods: {
init() {
menuApi.getMenu().then((resp) => {
this.Menuitems = resp.data;
});
},
},
};
</script>