fix: update

This commit is contained in:
xiaoxian521
2022-07-27 21:10:36 +08:00
parent c7955bcc19
commit 0d4fe313b4
9 changed files with 175 additions and 169 deletions

View File

@@ -1,6 +1,6 @@
import { ref } from "vue";
export default function useBoolean(initValue = false) {
export function useBoolean(initValue = false) {
const bool = ref(initValue);
function setBool(value: boolean) {

View File

@@ -1,6 +1,6 @@
import { getConfig } from "/@/config";
import { find } from "lodash-unified";
import useLayout from "./useLayout";
import { useLayout } from "./useLayout";
import { themeColorsType } from "../types";
import { TinyColor } from "@ctrl/tinycolor";
import { ref, getCurrentInstance } from "vue";
@@ -12,7 +12,7 @@ import {
toggleTheme
} from "@pureadmin/theme/dist/browser-utils";
export default function useDataThemeChange() {
export function useDataThemeChange() {
const { layoutTheme } = useLayout();
const themeColors = ref<Array<themeColorsType>>([
/* 道奇蓝(默认) */

View File

@@ -1,9 +1,9 @@
import { computed, getCurrentInstance } from "vue";
import { useI18n } from "vue-i18n";
import { routerArrays } from "../types";
import { computed, getCurrentInstance } from "vue";
import { useMultiTagsStore } from "/@/store/modules/multiTags";
export default function useLayout() {
export function useLayout() {
const instance = getCurrentInstance().appContext.app.config.globalProperties;
const initStorage = () => {

View File

@@ -3,7 +3,7 @@ import { useI18n } from "vue-i18n";
import { useRoute } from "vue-router";
import { watch, getCurrentInstance } from "vue";
export default function useTranslationLang() {
export function useTranslationLang() {
const { changeTitle, changeWangeditorLanguage } = useNav();
const { locale, t } = useI18n();
const route = useRoute();