feat: use unplugin-vue-define-options add setup name

This commit is contained in:
xiaoxian521
2022-05-21 12:29:54 +08:00
parent dca722cb29
commit 747e2b9c1c
93 changed files with 2387 additions and 4420 deletions

View File

@@ -1,13 +1,11 @@
<script lang="ts">
export default {
name: "permissionButton"
};
</script>
<script setup lang="ts">
import { ref } from "vue";
import { storageSession } from "/@/utils/storage";
defineOptions({
name: "PermissionButton"
});
const auth = ref<boolean>(storageSession.getItem("info").username || "admin");
function changRole(value) {

View File

@@ -1,14 +1,12 @@
<script lang="ts">
export default {
name: "permissionPage"
};
</script>
<script setup lang="ts">
import { ref, unref } from "vue";
import { storageSession } from "/@/utils/storage";
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
defineOptions({
name: "PermissionPage"
});
let purview = ref<string>(storageSession.getItem("info").username);
function changRole() {