fix: update @pureadmin/utils

This commit is contained in:
xiaoxian521
2022-07-02 12:11:09 +08:00
parent af04611d6c
commit 5a23bd02a4
72 changed files with 1355 additions and 1981 deletions

View File

@@ -1,12 +1,15 @@
<script setup lang="ts">
import { ref } from "vue";
import { storageSession } from "/@/utils/storage";
import type { StorageConfigs } from "/#/index";
import { storageSession } from "@pureadmin/utils";
defineOptions({
name: "PermissionButton"
});
const auth = ref<boolean>(storageSession.getItem("info").username || "admin");
const auth = ref(
storageSession.getItem<StorageConfigs>("info").username || "admin"
);
function changRole(value) {
storageSession.setItem("info", {