<script setup>
import tableView from "@/components/restful/tableUser.vue";
import LocalCache from "@/stores/localCache.js";
import userStore from "@/stores/user.js";

let resourceCache = {
  meta: {
    desc: 'character',
    resource: 'character',
    resource_url: '/resource/character',
    methods: {
      get: true,
      post: true,
      put: true,
      delete: true,
    },
  },
}
const userInfo = userStore().userInfo
if (userInfo.character !== "admin") {
  resourceCache.meta.methods = {} // 先只有管理员有权限动用户模块
}
LocalCache.setCache("resource", resourceCache)

</script>

<template>
  <div>
    <component :is="tableView"></component>
  </div>
</template>

<style scoped>

</style>