mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
refactor: 使用@/
别名替换/@/
别名
This commit is contained in:
parent
307944cdb5
commit
94f72cd6d9
@ -11,8 +11,8 @@ import VueI18n from "@intlify/vite-plugin-vue-i18n";
|
|||||||
import { visualizer } from "rollup-plugin-visualizer";
|
import { visualizer } from "rollup-plugin-visualizer";
|
||||||
import removeConsole from "vite-plugin-remove-console";
|
import removeConsole from "vite-plugin-remove-console";
|
||||||
import themePreprocessorPlugin from "@pureadmin/theme";
|
import themePreprocessorPlugin from "@pureadmin/theme";
|
||||||
import { genScssMultipleScopeVars } from "/@/layout/theme";
|
|
||||||
import DefineOptions from "unplugin-vue-define-options/vite";
|
import DefineOptions from "unplugin-vue-define-options/vite";
|
||||||
|
import { genScssMultipleScopeVars } from "../src/layout/theme";
|
||||||
|
|
||||||
export function getPluginsList(
|
export function getPluginsList(
|
||||||
command: string,
|
command: string,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { defineComponent, Fragment } from "vue";
|
import { defineComponent, Fragment } from "vue";
|
||||||
import { hasAuth } from "/@/router/utils";
|
import { hasAuth } from "@/router/utils";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "Auth",
|
name: "Auth",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { PropType } from "vue";
|
import { PropType } from "vue";
|
||||||
import { propTypes } from "/@/utils/propTypes";
|
import { propTypes } from "@/utils/propTypes";
|
||||||
export const countToProps = {
|
export const countToProps = {
|
||||||
startVal: propTypes.number.def(0),
|
startVal: propTypes.number.def(0),
|
||||||
endVal: propTypes.number.def(2020),
|
endVal: propTypes.number.def(2020),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { PropType } from "vue";
|
import { PropType } from "vue";
|
||||||
import { propTypes } from "/@/utils/propTypes";
|
import { propTypes } from "@/utils/propTypes";
|
||||||
export const reboundProps = {
|
export const reboundProps = {
|
||||||
delay: propTypes.number.def(1),
|
delay: propTypes.number.def(1),
|
||||||
blur: propTypes.number.def(2),
|
blur: propTypes.number.def(2),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { defineComponent, ref } from "vue";
|
import { defineComponent, ref } from "vue";
|
||||||
import { propTypes } from "/@/utils/propTypes";
|
import { propTypes } from "@/utils/propTypes";
|
||||||
import "./filpper.css";
|
import "./filpper.css";
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { cloneDeep } from "lodash-unified";
|
import { cloneDeep } from "lodash-unified";
|
||||||
import { ref, computed, CSSProperties, toRef, watch } from "vue";
|
import { ref, computed, CSSProperties, toRef, watch } from "vue";
|
||||||
import { IconJson } from "/@/components/ReIcon/data";
|
import { IconJson } from "@/components/ReIcon/data";
|
||||||
type ParameterCSSProperties = (item?: string) => CSSProperties | undefined;
|
type ParameterCSSProperties = (item?: string) => CSSProperties | undefined;
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
import { reactive, getCurrentInstance, onBeforeMount, onUnmounted } from "vue";
|
import { reactive, getCurrentInstance, onBeforeMount, onUnmounted } from "vue";
|
||||||
import { deviceDetection } from "@pureadmin/utils";
|
import { deviceDetection } from "@pureadmin/utils";
|
||||||
import AMapLoader from "@amap/amap-jsapi-loader";
|
import AMapLoader from "@amap/amap-jsapi-loader";
|
||||||
import { mapJson } from "/@/api/mock";
|
import { mapJson } from "@/api/mock";
|
||||||
import car from "/@/assets/car.png";
|
import car from "@/assets/car.png";
|
||||||
|
|
||||||
export interface MapConfigureInter {
|
export interface MapConfigureInter {
|
||||||
on: Fn;
|
on: Fn;
|
||||||
|
@ -10,7 +10,7 @@ import {
|
|||||||
import "./index.scss";
|
import "./index.scss";
|
||||||
import { cloneDeep } from "lodash-unified";
|
import { cloneDeep } from "lodash-unified";
|
||||||
import { isString } from "@pureadmin/utils";
|
import { isString } from "@pureadmin/utils";
|
||||||
import { propTypes } from "/@/utils/propTypes";
|
import { propTypes } from "@/utils/propTypes";
|
||||||
import { IconifyIconOffline } from "../../ReIcon";
|
import { IconifyIconOffline } from "../../ReIcon";
|
||||||
import QRCode, { QRCodeRenderersOptions } from "qrcode";
|
import QRCode, { QRCodeRenderersOptions } from "qrcode";
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { defineComponent, ref, computed, PropType } from "vue";
|
import { defineComponent, ref, computed, PropType } from "vue";
|
||||||
import { useEpThemeStoreHook } from "/@/store/modules/epTheme";
|
import { useEpThemeStoreHook } from "@/store/modules/epTheme";
|
||||||
import { IconifyIconOffline } from "../../ReIcon";
|
import { IconifyIconOffline } from "../../ReIcon";
|
||||||
|
|
||||||
export const loadingSvg = `
|
export const loadingSvg = `
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { hasAuth } from "/@/router/utils";
|
import { hasAuth } from "@/router/utils";
|
||||||
import { Directive, type DirectiveBinding } from "vue";
|
import { Directive, type DirectiveBinding } from "vue";
|
||||||
|
|
||||||
export const auth: Directive = {
|
export const auth: Directive = {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Directive, type DirectiveBinding, type VNode } from "vue";
|
import { Directive, type DirectiveBinding, type VNode } from "vue";
|
||||||
import elementResizeDetectorMaker from "element-resize-detector";
|
import elementResizeDetectorMaker from "element-resize-detector";
|
||||||
import type { Erd } from "element-resize-detector";
|
import type { Erd } from "element-resize-detector";
|
||||||
import { emitter } from "/@/utils/mitt";
|
import { emitter } from "@/utils/mitt";
|
||||||
|
|
||||||
const erd: Erd = elementResizeDetectorMaker({
|
const erd: Erd = elementResizeDetectorMaker({
|
||||||
strategy: "scroll"
|
strategy: "scroll"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useGlobal } from "@pureadmin/utils";
|
import { useGlobal } from "@pureadmin/utils";
|
||||||
import backTop from "/@/assets/svg/back_top.svg?component";
|
import backTop from "@/assets/svg/back_top.svg?component";
|
||||||
import { h, computed, Transition, defineComponent } from "vue";
|
import { h, computed, Transition, defineComponent } from "vue";
|
||||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
fixedHeader: Boolean
|
fixedHeader: Boolean
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
import Search from "./search/index.vue";
|
import Search from "./search/index.vue";
|
||||||
import Notice from "./notice/index.vue";
|
import Notice from "./notice/index.vue";
|
||||||
import mixNav from "./sidebar/mixNav.vue";
|
import mixNav from "./sidebar/mixNav.vue";
|
||||||
import avatars from "/@/assets/avatars.jpg";
|
import avatars from "@/assets/avatars.jpg";
|
||||||
import { useNav } from "/@/layout/hooks/useNav";
|
import { useNav } from "@/layout/hooks/useNav";
|
||||||
import Breadcrumb from "./sidebar/breadCrumb.vue";
|
import Breadcrumb from "./sidebar/breadCrumb.vue";
|
||||||
import topCollapse from "./sidebar/topCollapse.vue";
|
import topCollapse from "./sidebar/topCollapse.vue";
|
||||||
import { useTranslationLang } from "../hooks/useTranslationLang";
|
import { useTranslationLang } from "../hooks/useTranslationLang";
|
||||||
import globalization from "/@/assets/svg/globalization.svg?component";
|
import globalization from "@/assets/svg/globalization.svg?component";
|
||||||
|
|
||||||
const {
|
const {
|
||||||
layout,
|
layout,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import { onClickOutside } from "@vueuse/core";
|
import { onClickOutside } from "@vueuse/core";
|
||||||
import { emitter } from "/@/utils/mitt";
|
import { emitter } from "@/utils/mitt";
|
||||||
|
|
||||||
let show = ref<Boolean>(false);
|
let show = ref<Boolean>(false);
|
||||||
const target = ref(null);
|
const target = ref(null);
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import enterOutlined from "/@/assets/svg/enter_outlined.svg?component";
|
import enterOutlined from "@/assets/svg/enter_outlined.svg?component";
|
||||||
import mdiKeyboardEsc from "/@/assets/svg/mdi_keyboard_esc.svg?component";
|
import mdiKeyboardEsc from "@/assets/svg/mdi_keyboard_esc.svg?component";
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.search-footer {
|
.search-footer {
|
||||||
|
@ -3,12 +3,12 @@ import { useRouter } from "vue-router";
|
|||||||
import { cloneDeep } from "lodash-unified";
|
import { cloneDeep } from "lodash-unified";
|
||||||
import SearchResult from "./SearchResult.vue";
|
import SearchResult from "./SearchResult.vue";
|
||||||
import SearchFooter from "./SearchFooter.vue";
|
import SearchFooter from "./SearchFooter.vue";
|
||||||
import { useNav } from "/@/layout/hooks/useNav";
|
import { useNav } from "@/layout/hooks/useNav";
|
||||||
import { transformI18n } from "/@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import { deleteChildren } from "@pureadmin/utils";
|
import { deleteChildren } from "@pureadmin/utils";
|
||||||
import { useDebounceFn, onKeyStroke } from "@vueuse/core";
|
import { useDebounceFn, onKeyStroke } from "@vueuse/core";
|
||||||
import { ref, watch, computed, nextTick, shallowRef } from "vue";
|
import { ref, watch, computed, nextTick, shallowRef } from "vue";
|
||||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
/** 弹窗显隐 */
|
/** 弹窗显隐 */
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { useEpThemeStoreHook } from "/@/store/modules/epTheme";
|
import { useEpThemeStoreHook } from "@/store/modules/epTheme";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
import enterOutlined from "/@/assets/svg/enter_outlined.svg?component";
|
import enterOutlined from "@/assets/svg/enter_outlined.svg?component";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
|
@ -8,18 +8,18 @@ import {
|
|||||||
nextTick,
|
nextTick,
|
||||||
useCssModule
|
useCssModule
|
||||||
} from "vue";
|
} from "vue";
|
||||||
import { getConfig } from "/@/config";
|
import { getConfig } from "@/config";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import panel from "../panel/index.vue";
|
import panel from "../panel/index.vue";
|
||||||
import { emitter } from "/@/utils/mitt";
|
import { emitter } from "@/utils/mitt";
|
||||||
import { resetRouter } from "/@/router";
|
import { resetRouter } from "@/router";
|
||||||
import { templateRef } from "@vueuse/core";
|
import { templateRef } from "@vueuse/core";
|
||||||
import { removeToken } from "/@/utils/auth";
|
import { removeToken } from "@/utils/auth";
|
||||||
import { routerArrays } from "/@/layout/types";
|
import { routerArrays } from "@/layout/types";
|
||||||
import { useNav } from "/@/layout/hooks/useNav";
|
import { useNav } from "@/layout/hooks/useNav";
|
||||||
import { useAppStoreHook } from "/@/store/modules/app";
|
import { useAppStoreHook } from "@/store/modules/app";
|
||||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||||
import { useDataThemeChange } from "/@/layout/hooks/useDataThemeChange";
|
import { useDataThemeChange } from "@/layout/hooks/useDataThemeChange";
|
||||||
import {
|
import {
|
||||||
useDark,
|
useDark,
|
||||||
debounce,
|
debounce,
|
||||||
@ -29,8 +29,8 @@ import {
|
|||||||
} from "@pureadmin/utils";
|
} from "@pureadmin/utils";
|
||||||
import { toggleTheme } from "@pureadmin/theme/dist/browser-utils";
|
import { toggleTheme } from "@pureadmin/theme/dist/browser-utils";
|
||||||
|
|
||||||
import dayIcon from "/@/assets/svg/day.svg?component";
|
import dayIcon from "@/assets/svg/day.svg?component";
|
||||||
import darkIcon from "/@/assets/svg/dark.svg?component";
|
import darkIcon from "@/assets/svg/dark.svg?component";
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { device } = useNav();
|
const { device } = useNav();
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { isEqual } from "lodash-unified";
|
import { isEqual } from "lodash-unified";
|
||||||
import { transformI18n } from "/@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import { ref, watch, onMounted, toRaw } from "vue";
|
import { ref, watch, onMounted, toRaw } from "vue";
|
||||||
import { getParentPaths, findRouteByPath } from "/@/router/utils";
|
import { getParentPaths, findRouteByPath } from "@/router/utils";
|
||||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||||
import { useRoute, useRouter, RouteLocationMatched } from "vue-router";
|
import { useRoute, useRouter, RouteLocationMatched } from "vue-router";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
@ -3,11 +3,11 @@ import Search from "../search/index.vue";
|
|||||||
import Notice from "../notice/index.vue";
|
import Notice from "../notice/index.vue";
|
||||||
import { ref, watch, nextTick } from "vue";
|
import { ref, watch, nextTick } from "vue";
|
||||||
import SidebarItem from "./sidebarItem.vue";
|
import SidebarItem from "./sidebarItem.vue";
|
||||||
import avatars from "/@/assets/avatars.jpg";
|
import avatars from "@/assets/avatars.jpg";
|
||||||
import { useNav } from "/@/layout/hooks/useNav";
|
import { useNav } from "@/layout/hooks/useNav";
|
||||||
import { useTranslationLang } from "../../hooks/useTranslationLang";
|
import { useTranslationLang } from "../../hooks/useTranslationLang";
|
||||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||||
import globalization from "/@/assets/svg/globalization.svg?component";
|
import globalization from "@/assets/svg/globalization.svg?component";
|
||||||
|
|
||||||
const menuRef = ref();
|
const menuRef = ref();
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useNav } from "/@/layout/hooks/useNav";
|
import { useNav } from "@/layout/hooks/useNav";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
collapse: Boolean
|
collapse: Boolean
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Search from "../search/index.vue";
|
import Search from "../search/index.vue";
|
||||||
import Notice from "../notice/index.vue";
|
import Notice from "../notice/index.vue";
|
||||||
import avatars from "/@/assets/avatars.jpg";
|
import avatars from "@/assets/avatars.jpg";
|
||||||
import { useNav } from "/@/layout/hooks/useNav";
|
import { useNav } from "@/layout/hooks/useNav";
|
||||||
import { transformI18n } from "/@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import { ref, toRaw, watch, onMounted, nextTick } from "vue";
|
import { ref, toRaw, watch, onMounted, nextTick } from "vue";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
import { getParentPaths, findRouteByPath } from "/@/router/utils";
|
import { getParentPaths, findRouteByPath } from "@/router/utils";
|
||||||
import { useTranslationLang } from "../../hooks/useTranslationLang";
|
import { useTranslationLang } from "../../hooks/useTranslationLang";
|
||||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||||
import globalization from "/@/assets/svg/globalization.svg?component";
|
import globalization from "@/assets/svg/globalization.svg?component";
|
||||||
|
|
||||||
const menuRef = ref();
|
const menuRef = ref();
|
||||||
let defaultActive = ref(null);
|
let defaultActive = ref(null);
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { childrenType } from "../../types";
|
import { childrenType } from "../../types";
|
||||||
import { useNav } from "/@/layout/hooks/useNav";
|
import { useNav } from "@/layout/hooks/useNav";
|
||||||
import { transformI18n } from "/@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
import { ref, toRaw, PropType, nextTick, computed, CSSProperties } from "vue";
|
import { ref, toRaw, PropType, nextTick, computed, CSSProperties } from "vue";
|
||||||
|
|
||||||
const { layout, isCollapse } = useNav();
|
const { layout, isCollapse } = useNav();
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Logo from "./logo.vue";
|
import Logo from "./logo.vue";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import { emitter } from "/@/utils/mitt";
|
import { emitter } from "@/utils/mitt";
|
||||||
import SidebarItem from "./sidebarItem.vue";
|
import SidebarItem from "./sidebarItem.vue";
|
||||||
import leftCollapse from "./leftCollapse.vue";
|
import leftCollapse from "./leftCollapse.vue";
|
||||||
import type { StorageConfigs } from "/#/index";
|
import type { StorageConfigs } from "/#/index";
|
||||||
import { useNav } from "/@/layout/hooks/useNav";
|
import { useNav } from "@/layout/hooks/useNav";
|
||||||
import { storageLocal } from "@pureadmin/utils";
|
import { storageLocal } from "@pureadmin/utils";
|
||||||
import { ref, computed, watch, onBeforeMount } from "vue";
|
import { ref, computed, watch, onBeforeMount } from "vue";
|
||||||
import { findRouteByPath, getParentPaths } from "/@/router/utils";
|
import { findRouteByPath, getParentPaths } from "@/router/utils";
|
||||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const showLogo = ref(
|
const showLogo = ref(
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import { emitter } from "/@/utils/mitt";
|
import { emitter } from "@/utils/mitt";
|
||||||
import { RouteConfigs } from "../../types";
|
import { RouteConfigs } from "../../types";
|
||||||
import { useTags } from "../../hooks/useTag";
|
import { useTags } from "../../hooks/useTag";
|
||||||
import { routerArrays } from "/@/layout/types";
|
import { routerArrays } from "@/layout/types";
|
||||||
import { isEqual, isEmpty } from "lodash-unified";
|
import { isEqual, isEmpty } from "lodash-unified";
|
||||||
import { useSettingStoreHook } from "/@/store/modules/settings";
|
import { useSettingStoreHook } from "@/store/modules/settings";
|
||||||
import { ref, watch, unref, nextTick, onBeforeMount } from "vue";
|
import { ref, watch, unref, nextTick, onBeforeMount } from "vue";
|
||||||
import { handleAliveRoute, delAliveRoutes } from "/@/router/utils";
|
import { handleAliveRoute, delAliveRoutes } from "@/router/utils";
|
||||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||||
import { useResizeObserver, useDebounceFn, useFullscreen } from "@vueuse/core";
|
import { useResizeObserver, useDebounceFn, useFullscreen } from "@vueuse/core";
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import { getConfig } from "/@/config";
|
import { getConfig } from "@/config";
|
||||||
import { find } from "lodash-unified";
|
import { find } from "lodash-unified";
|
||||||
import { useLayout } from "./useLayout";
|
import { useLayout } from "./useLayout";
|
||||||
import { themeColorsType } from "../types";
|
import { themeColorsType } from "../types";
|
||||||
import { TinyColor } from "@ctrl/tinycolor";
|
import { TinyColor } from "@ctrl/tinycolor";
|
||||||
import { useGlobal } from "@pureadmin/utils";
|
import { useGlobal } from "@pureadmin/utils";
|
||||||
import { useEpThemeStoreHook } from "/@/store/modules/epTheme";
|
import { useEpThemeStoreHook } from "@/store/modules/epTheme";
|
||||||
import {
|
import {
|
||||||
darken,
|
darken,
|
||||||
lighten,
|
lighten,
|
||||||
|
@ -2,7 +2,7 @@ import { computed } from "vue";
|
|||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { routerArrays } from "../types";
|
import { routerArrays } from "../types";
|
||||||
import { useGlobal } from "@pureadmin/utils";
|
import { useGlobal } from "@pureadmin/utils";
|
||||||
import { useMultiTagsStore } from "/@/store/modules/multiTags";
|
import { useMultiTagsStore } from "@/store/modules/multiTags";
|
||||||
|
|
||||||
export function useLayout() {
|
export function useLayout() {
|
||||||
const { $storage, $config } = useGlobal<GlobalPropertiesApi>();
|
const { $storage, $config } = useGlobal<GlobalPropertiesApi>();
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
import { getConfig } from "/@/config";
|
import { getConfig } from "@/config";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import { emitter } from "/@/utils/mitt";
|
import { emitter } from "@/utils/mitt";
|
||||||
import { routeMetaType } from "../types";
|
import { routeMetaType } from "../types";
|
||||||
import { useGlobal } from "@pureadmin/utils";
|
import { useGlobal } from "@pureadmin/utils";
|
||||||
import { transformI18n } from "/@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import { router, remainingPaths } from "/@/router";
|
import { router, remainingPaths } from "@/router";
|
||||||
import { useAppStoreHook } from "/@/store/modules/app";
|
import { useAppStoreHook } from "@/store/modules/app";
|
||||||
import { i18nChangeLanguage } from "@wangeditor/editor";
|
import { i18nChangeLanguage } from "@wangeditor/editor";
|
||||||
import { useUserStoreHook } from "/@/store/modules/user";
|
import { useUserStoreHook } from "@/store/modules/user";
|
||||||
import { useEpThemeStoreHook } from "/@/store/modules/epTheme";
|
import { useEpThemeStoreHook } from "@/store/modules/epTheme";
|
||||||
|
|
||||||
const errorInfo = "当前路由配置不正确,请检查配置";
|
const errorInfo = "当前路由配置不正确,请检查配置";
|
||||||
|
|
||||||
|
@ -13,9 +13,9 @@ import { isEqual } from "lodash-unified";
|
|||||||
import type { StorageConfigs } from "/#/index";
|
import type { StorageConfigs } from "/#/index";
|
||||||
import { useEventListener } from "@vueuse/core";
|
import { useEventListener } from "@vueuse/core";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import { transformI18n, $t } from "/@/plugins/i18n";
|
import { transformI18n, $t } from "@/plugins/i18n";
|
||||||
import { useSettingStoreHook } from "/@/store/modules/settings";
|
import { useSettingStoreHook } from "@/store/modules/settings";
|
||||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||||
import { storageLocal, toggleClass, hasClass } from "@pureadmin/utils";
|
import { storageLocal, toggleClass, hasClass } from "@pureadmin/utils";
|
||||||
|
|
||||||
export function useTags() {
|
export function useTags() {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { setType } from "./types";
|
import { setType } from "./types";
|
||||||
import { emitter } from "/@/utils/mitt";
|
import { emitter } from "@/utils/mitt";
|
||||||
import { useLayout } from "./hooks/useLayout";
|
import { useLayout } from "./hooks/useLayout";
|
||||||
import { useAppStoreHook } from "/@/store/modules/app";
|
import { useAppStoreHook } from "@/store/modules/app";
|
||||||
import { useSettingStoreHook } from "/@/store/modules/settings";
|
import { useSettingStoreHook } from "@/store/modules/settings";
|
||||||
import { deviceDetection, useDark, useGlobal } from "@pureadmin/utils";
|
import { deviceDetection, useDark, useGlobal } from "@pureadmin/utils";
|
||||||
import { h, reactive, computed, onMounted, defineComponent } from "vue";
|
import { h, reactive, computed, onMounted, defineComponent } from "vue";
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ import appMain from "./components/appMain.vue";
|
|||||||
import setting from "./components/setting/index.vue";
|
import setting from "./components/setting/index.vue";
|
||||||
import Vertical from "./components/sidebar/vertical.vue";
|
import Vertical from "./components/sidebar/vertical.vue";
|
||||||
import Horizontal from "./components/sidebar/horizontal.vue";
|
import Horizontal from "./components/sidebar/horizontal.vue";
|
||||||
import backTop from "/@/assets/svg/back_top.svg?component";
|
import backTop from "@/assets/svg/back_top.svg?component";
|
||||||
|
|
||||||
const { isDark } = useDark();
|
const { isDark } = useDark();
|
||||||
const { layout } = useLayout();
|
const { layout } = useLayout();
|
||||||
|
14
src/main.ts
14
src/main.ts
@ -1,15 +1,15 @@
|
|||||||
import App from "./App.vue";
|
import App from "./App.vue";
|
||||||
import router from "./router";
|
import router from "./router";
|
||||||
import { setupStore } from "/@/store";
|
import { setupStore } from "@/store";
|
||||||
import ElementPlus from "element-plus";
|
import ElementPlus from "element-plus";
|
||||||
|
import { useI18n } from "@/plugins/i18n";
|
||||||
import { getServerConfig } from "./config";
|
import { getServerConfig } from "./config";
|
||||||
import { createApp, Directive } from "vue";
|
import { createApp, Directive } from "vue";
|
||||||
import { useI18n } from "../src/plugins/i18n";
|
|
||||||
import { MotionPlugin } from "@vueuse/motion";
|
import { MotionPlugin } from "@vueuse/motion";
|
||||||
import { useEcharts } from "/@/plugins/echarts";
|
import { useEcharts } from "@/plugins/echarts";
|
||||||
|
import { useTable } from "@/plugins/vxe-table";
|
||||||
import VirtualScroller from "vue-virtual-scroller";
|
import VirtualScroller from "vue-virtual-scroller";
|
||||||
import { useTable } from "../src/plugins/vxe-table";
|
import { injectResponsiveStorage } from "@/utils/responsive";
|
||||||
import { injectResponsiveStorage } from "/@/utils/responsive";
|
|
||||||
|
|
||||||
import Table from "@pureadmin/table";
|
import Table from "@pureadmin/table";
|
||||||
import PureDescriptions from "@pureadmin/descriptions";
|
import PureDescriptions from "@pureadmin/descriptions";
|
||||||
@ -32,7 +32,7 @@ import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
|
|||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
|
|
||||||
// 自定义指令
|
// 自定义指令
|
||||||
import * as directives from "/@/directives";
|
import * as directives from "@/directives";
|
||||||
Object.keys(directives).forEach(key => {
|
Object.keys(directives).forEach(key => {
|
||||||
app.directive(key, (directives as { [key: string]: Directive })[key]);
|
app.directive(key, (directives as { [key: string]: Directive })[key]);
|
||||||
});
|
});
|
||||||
@ -48,7 +48,7 @@ app.component("IconifyIconOnline", IconifyIconOnline);
|
|||||||
app.component("FontIcon", FontIcon);
|
app.component("FontIcon", FontIcon);
|
||||||
|
|
||||||
// 全局注册按钮级别权限组件
|
// 全局注册按钮级别权限组件
|
||||||
import { Auth } from "/@/components/ReAuth";
|
import { Auth } from "@/components/ReAuth";
|
||||||
app.component("Auth", Auth);
|
app.component("Auth", Auth);
|
||||||
|
|
||||||
getServerConfig(app).then(async config => {
|
getServerConfig(app).then(async config => {
|
||||||
|
@ -2,7 +2,7 @@ import "xe-utils";
|
|||||||
import "./index.scss";
|
import "./index.scss";
|
||||||
import XEUtils from "xe-utils";
|
import XEUtils from "xe-utils";
|
||||||
import { App, unref } from "vue";
|
import { App, unref } from "vue";
|
||||||
import { i18n } from "/@/plugins/i18n";
|
import { i18n } from "@/plugins/i18n";
|
||||||
import "font-awesome/css/font-awesome.min.css";
|
import "font-awesome/css/font-awesome.min.css";
|
||||||
import zh from "vxe-table/lib/locale/lang/zh-CN";
|
import zh from "vxe-table/lib/locale/lang/zh-CN";
|
||||||
import en from "vxe-table/lib/locale/lang/en-US";
|
import en from "vxe-table/lib/locale/lang/en-US";
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { getConfig } from "/@/config";
|
import { getConfig } from "@/config";
|
||||||
import { toRouteType } from "./types";
|
import { toRouteType } from "./types";
|
||||||
import NProgress from "/@/utils/progress";
|
import NProgress from "@/utils/progress";
|
||||||
import { findIndex } from "lodash-unified";
|
import { findIndex } from "lodash-unified";
|
||||||
import { transformI18n } from "/@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import { sessionKey, type DataInfo } from "/@/utils/auth";
|
import { sessionKey, type DataInfo } from "@/utils/auth";
|
||||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||||
import {
|
import {
|
||||||
Router,
|
Router,
|
||||||
createRouter,
|
createRouter,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
|
|
||||||
const ableRouter: RouteConfigsTable = {
|
const ableRouter: RouteConfigsTable = {
|
||||||
@ -13,7 +13,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/watermark",
|
path: "/able/watermark",
|
||||||
name: "WaterMark",
|
name: "WaterMark",
|
||||||
component: () => import("/@/views/able/watermark.vue"),
|
component: () => import("@/views/able/watermark.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsWatermark")
|
title: $t("menus.hsWatermark")
|
||||||
}
|
}
|
||||||
@ -21,7 +21,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/print",
|
path: "/able/print",
|
||||||
name: "Print",
|
name: "Print",
|
||||||
component: () => import("/@/views/able/print.vue"),
|
component: () => import("@/views/able/print.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsPrint")
|
title: $t("menus.hsPrint")
|
||||||
}
|
}
|
||||||
@ -29,7 +29,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/download",
|
path: "/able/download",
|
||||||
name: "Download",
|
name: "Download",
|
||||||
component: () => import("/@/views/able/download.vue"),
|
component: () => import("@/views/able/download.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsDownload")
|
title: $t("menus.hsDownload")
|
||||||
}
|
}
|
||||||
@ -37,7 +37,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/iconSelect",
|
path: "/able/iconSelect",
|
||||||
name: "IconSelect",
|
name: "IconSelect",
|
||||||
component: () => import("/@/views/able/icon-select.vue"),
|
component: () => import("@/views/able/icon-select.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsIconSelect")
|
title: $t("menus.hsIconSelect")
|
||||||
}
|
}
|
||||||
@ -45,7 +45,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/timeline",
|
path: "/able/timeline",
|
||||||
name: "TimeLine",
|
name: "TimeLine",
|
||||||
component: () => import("/@/views/able/timeline.vue"),
|
component: () => import("@/views/able/timeline.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsTimeline")
|
title: $t("menus.hsTimeline")
|
||||||
}
|
}
|
||||||
@ -53,7 +53,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/menuTree",
|
path: "/able/menuTree",
|
||||||
name: "MenuTree",
|
name: "MenuTree",
|
||||||
component: () => import("/@/views/able/menu-tree.vue"),
|
component: () => import("@/views/able/menu-tree.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsMenuTree")
|
title: $t("menus.hsMenuTree")
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/lineTree",
|
path: "/able/lineTree",
|
||||||
name: "LineTree",
|
name: "LineTree",
|
||||||
component: () => import("/@/views/able/line-tree.vue"),
|
component: () => import("@/views/able/line-tree.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsLineTree")
|
title: $t("menus.hsLineTree")
|
||||||
}
|
}
|
||||||
@ -69,7 +69,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/antTabs",
|
path: "/able/antTabs",
|
||||||
name: "AntTabs",
|
name: "AntTabs",
|
||||||
component: () => import("/@/views/able/ant-tabs.vue"),
|
component: () => import("@/views/able/ant-tabs.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsAntTabs")
|
title: $t("menus.hsAntTabs")
|
||||||
}
|
}
|
||||||
@ -77,7 +77,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/antAnchor",
|
path: "/able/antAnchor",
|
||||||
name: "AntAnchor",
|
name: "AntAnchor",
|
||||||
component: () => import("/@/views/able/ant-anchor.vue"),
|
component: () => import("@/views/able/ant-anchor.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsAntAnchor")
|
title: $t("menus.hsAntAnchor")
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/antTreeSelect",
|
path: "/able/antTreeSelect",
|
||||||
name: "AntTreeSelect",
|
name: "AntTreeSelect",
|
||||||
component: () => import("/@/views/able/ant-treeSelect.vue"),
|
component: () => import("@/views/able/ant-treeSelect.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsAntTreeSelect")
|
title: $t("menus.hsAntTreeSelect")
|
||||||
}
|
}
|
||||||
@ -93,7 +93,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/debounce",
|
path: "/able/debounce",
|
||||||
name: "Debounce",
|
name: "Debounce",
|
||||||
component: () => import("/@/views/able/debounce.vue"),
|
component: () => import("@/views/able/debounce.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsDebounce")
|
title: $t("menus.hsDebounce")
|
||||||
}
|
}
|
||||||
@ -101,7 +101,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/barcode",
|
path: "/able/barcode",
|
||||||
name: "BarCode",
|
name: "BarCode",
|
||||||
component: () => import("/@/views/able/barcode.vue"),
|
component: () => import("@/views/able/barcode.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsBarcode")
|
title: $t("menus.hsBarcode")
|
||||||
}
|
}
|
||||||
@ -109,7 +109,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/qrcode",
|
path: "/able/qrcode",
|
||||||
name: "QrCode",
|
name: "QrCode",
|
||||||
component: () => import("/@/views/able/qrcode.vue"),
|
component: () => import("@/views/able/qrcode.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsQrcode")
|
title: $t("menus.hsQrcode")
|
||||||
}
|
}
|
||||||
@ -117,7 +117,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/cascader",
|
path: "/able/cascader",
|
||||||
name: "Cascader",
|
name: "Cascader",
|
||||||
component: () => import("/@/views/able/cascader.vue"),
|
component: () => import("@/views/able/cascader.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsCascader")
|
title: $t("menus.hsCascader")
|
||||||
}
|
}
|
||||||
@ -125,7 +125,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/swiper",
|
path: "/able/swiper",
|
||||||
name: "Swiper",
|
name: "Swiper",
|
||||||
component: () => import("/@/views/able/swiper.vue"),
|
component: () => import("@/views/able/swiper.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsSwiper")
|
title: $t("menus.hsSwiper")
|
||||||
}
|
}
|
||||||
@ -133,7 +133,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/virtualList",
|
path: "/able/virtualList",
|
||||||
name: "VirtualList",
|
name: "VirtualList",
|
||||||
component: () => import("/@/views/able/virtual-list/index.vue"),
|
component: () => import("@/views/able/virtual-list/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsVirtualList")
|
title: $t("menus.hsVirtualList")
|
||||||
}
|
}
|
||||||
@ -141,7 +141,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/pdf",
|
path: "/able/pdf",
|
||||||
name: "Pdf",
|
name: "Pdf",
|
||||||
component: () => import("/@/views/able/pdf.vue"),
|
component: () => import("@/views/able/pdf.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsPdf")
|
title: $t("menus.hsPdf")
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/execl",
|
path: "/able/execl",
|
||||||
name: "Execl",
|
name: "Execl",
|
||||||
component: () => import("/@/views/able/execl.vue"),
|
component: () => import("@/views/able/execl.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsExecl")
|
title: $t("menus.hsExecl")
|
||||||
}
|
}
|
||||||
@ -157,7 +157,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/able/infiniteScroll",
|
path: "/able/infiniteScroll",
|
||||||
name: "InfiniteScroll",
|
name: "InfiniteScroll",
|
||||||
component: () => import("/@/views/able/infinite-scroll.vue"),
|
component: () => import("@/views/able/infinite-scroll.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsInfiniteScroll")
|
title: $t("menus.hsInfiniteScroll")
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
|
|
||||||
const aboutRouter: RouteConfigsTable = {
|
const aboutRouter: RouteConfigsTable = {
|
||||||
@ -13,7 +13,7 @@ const aboutRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/about/index",
|
path: "/about/index",
|
||||||
name: "About",
|
name: "About",
|
||||||
component: () => import("/@/views/about/index.vue"),
|
component: () => import("@/views/about/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsAbout")
|
title: $t("menus.hsAbout")
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
|
|
||||||
const componentsRouter: RouteConfigsTable = {
|
const componentsRouter: RouteConfigsTable = {
|
||||||
@ -13,7 +13,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/video",
|
path: "/components/video",
|
||||||
name: "Video",
|
name: "Video",
|
||||||
component: () => import("/@/views/components/video/index.vue"),
|
component: () => import("@/views/components/video/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsvideo")
|
title: $t("menus.hsvideo")
|
||||||
}
|
}
|
||||||
@ -21,7 +21,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/map",
|
path: "/components/map",
|
||||||
name: "Map",
|
name: "Map",
|
||||||
component: () => import("/@/views/components/map/index.vue"),
|
component: () => import("@/views/components/map/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsmap"),
|
title: $t("menus.hsmap"),
|
||||||
keepAlive: true,
|
keepAlive: true,
|
||||||
@ -33,7 +33,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/draggable",
|
path: "/components/draggable",
|
||||||
name: "Draggable",
|
name: "Draggable",
|
||||||
component: () => import("/@/views/components/draggable/index.vue"),
|
component: () => import("@/views/components/draggable/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsdraggable"),
|
title: $t("menus.hsdraggable"),
|
||||||
transition: {
|
transition: {
|
||||||
@ -45,7 +45,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/splitPane",
|
path: "/components/splitPane",
|
||||||
name: "SplitPane",
|
name: "SplitPane",
|
||||||
component: () => import("/@/views/components/split-pane/index.vue"),
|
component: () => import("@/views/components/split-pane/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hssplitPane"),
|
title: $t("menus.hssplitPane"),
|
||||||
extraIcon: {
|
extraIcon: {
|
||||||
@ -57,7 +57,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/button",
|
path: "/components/button",
|
||||||
name: "Button",
|
name: "Button",
|
||||||
component: () => import("/@/views/components/button/index.vue"),
|
component: () => import("@/views/components/button/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsbutton")
|
title: $t("menus.hsbutton")
|
||||||
}
|
}
|
||||||
@ -65,7 +65,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/cropping",
|
path: "/components/cropping",
|
||||||
name: "Cropping",
|
name: "Cropping",
|
||||||
component: () => import("/@/views/components/cropping/index.vue"),
|
component: () => import("@/views/components/cropping/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hscropping")
|
title: $t("menus.hscropping")
|
||||||
}
|
}
|
||||||
@ -73,7 +73,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/countTo",
|
path: "/components/countTo",
|
||||||
name: "CountTo",
|
name: "CountTo",
|
||||||
component: () => import("/@/views/components/count-to/index.vue"),
|
component: () => import("@/views/components/count-to/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hscountTo")
|
title: $t("menus.hscountTo")
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/selector",
|
path: "/components/selector",
|
||||||
name: "Selector",
|
name: "Selector",
|
||||||
component: () => import("/@/views/components/selector/index.vue"),
|
component: () => import("@/views/components/selector/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsselector")
|
title: $t("menus.hsselector")
|
||||||
}
|
}
|
||||||
@ -89,7 +89,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/seamlessScroll",
|
path: "/components/seamlessScroll",
|
||||||
name: "SeamlessScroll",
|
name: "SeamlessScroll",
|
||||||
component: () => import("/@/views/components/seamless-scroll/index.vue"),
|
component: () => import("@/views/components/seamless-scroll/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsseamless")
|
title: $t("menus.hsseamless")
|
||||||
}
|
}
|
||||||
@ -97,7 +97,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/contextmenu",
|
path: "/components/contextmenu",
|
||||||
name: "ContextMenu",
|
name: "ContextMenu",
|
||||||
component: () => import("/@/views/components/contextmenu/index.vue"),
|
component: () => import("@/views/components/contextmenu/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hscontextmenu")
|
title: $t("menus.hscontextmenu")
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/typeit",
|
path: "/components/typeit",
|
||||||
name: "Typeit",
|
name: "Typeit",
|
||||||
component: () => import("/@/views/components/typeit/index.vue"),
|
component: () => import("@/views/components/typeit/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hstypeit")
|
title: $t("menus.hstypeit")
|
||||||
}
|
}
|
||||||
@ -113,7 +113,7 @@ const componentsRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/components/json-editor",
|
path: "/components/json-editor",
|
||||||
name: "JsonEditor",
|
name: "JsonEditor",
|
||||||
component: () => import("/@/views/components/json-editor/index.vue"),
|
component: () => import("@/views/components/json-editor/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsjsoneditor")
|
title: $t("menus.hsjsoneditor")
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
|
|
||||||
const editorRouter: RouteConfigsTable = {
|
const editorRouter: RouteConfigsTable = {
|
||||||
@ -13,7 +13,7 @@ const editorRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/editor/index",
|
path: "/editor/index",
|
||||||
name: "Editor",
|
name: "Editor",
|
||||||
component: () => import("/@/views/editor/index.vue"),
|
component: () => import("@/views/editor/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hseditor"),
|
title: $t("menus.hseditor"),
|
||||||
keepAlive: true
|
keepAlive: true
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
|
|
||||||
const errorRouter: RouteConfigsTable = {
|
const errorRouter: RouteConfigsTable = {
|
||||||
@ -13,7 +13,7 @@ const errorRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/error/403",
|
path: "/error/403",
|
||||||
name: "403",
|
name: "403",
|
||||||
component: () => import("/@/views/error/403.vue"),
|
component: () => import("@/views/error/403.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsfourZeroOne")
|
title: $t("menus.hsfourZeroOne")
|
||||||
}
|
}
|
||||||
@ -21,7 +21,7 @@ const errorRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/error/404",
|
path: "/error/404",
|
||||||
name: "404",
|
name: "404",
|
||||||
component: () => import("/@/views/error/404.vue"),
|
component: () => import("@/views/error/404.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsfourZeroFour")
|
title: $t("menus.hsfourZeroFour")
|
||||||
}
|
}
|
||||||
@ -29,7 +29,7 @@ const errorRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/error/500",
|
path: "/error/500",
|
||||||
name: "500",
|
name: "500",
|
||||||
component: () => import("/@/views/error/500.vue"),
|
component: () => import("@/views/error/500.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsFive")
|
title: $t("menus.hsFive")
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
|
|
||||||
const flowChartRouter: RouteConfigsTable = {
|
const flowChartRouter: RouteConfigsTable = {
|
||||||
@ -13,7 +13,7 @@ const flowChartRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/flowChart/index",
|
path: "/flowChart/index",
|
||||||
name: "FlowChart",
|
name: "FlowChart",
|
||||||
component: () => import("/@/views/flow-chart/index.vue"),
|
component: () => import("@/views/flow-chart/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsflowChart")
|
title: $t("menus.hsflowChart")
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
|
|
||||||
const formDesignRouter: RouteConfigsTable = {
|
const formDesignRouter: RouteConfigsTable = {
|
||||||
@ -13,7 +13,7 @@ const formDesignRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/formDesign/index",
|
path: "/formDesign/index",
|
||||||
name: "FormDesign",
|
name: "FormDesign",
|
||||||
component: () => import("/@/views/form-design/index.vue"),
|
component: () => import("@/views/form-design/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsFormDesign")
|
title: $t("menus.hsFormDesign")
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
|
|
||||||
const guideRouter: RouteConfigsTable = {
|
const guideRouter: RouteConfigsTable = {
|
||||||
@ -13,7 +13,7 @@ const guideRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/guide/index",
|
path: "/guide/index",
|
||||||
name: "Guide",
|
name: "Guide",
|
||||||
component: () => import("/@/views/guide/index.vue"),
|
component: () => import("@/views/guide/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsguide")
|
title: $t("menus.hsguide")
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
const Layout = () => import("/@/layout/index.vue");
|
const Layout = () => import("@/layout/index.vue");
|
||||||
|
|
||||||
const homeRouter: RouteConfigsTable = {
|
const homeRouter: RouteConfigsTable = {
|
||||||
path: "/",
|
path: "/",
|
||||||
@ -16,7 +16,7 @@ const homeRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/welcome",
|
path: "/welcome",
|
||||||
name: "Welcome",
|
name: "Welcome",
|
||||||
component: () => import("/@/views/welcome/index.vue"),
|
component: () => import("@/views/welcome/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hshome")
|
title: $t("menus.hshome")
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
|
|
||||||
const ableRouter: RouteConfigsTable = {
|
const ableRouter: RouteConfigsTable = {
|
||||||
@ -13,7 +13,7 @@ const ableRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/list/card",
|
path: "/list/card",
|
||||||
name: "ListCard",
|
name: "ListCard",
|
||||||
component: () => import("/@/views/list/card/index.vue"),
|
component: () => import("@/views/list/card/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
icon: "card",
|
icon: "card",
|
||||||
title: $t("menus.hsListCard"),
|
title: $t("menus.hsListCard"),
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
|
|
||||||
const nestedRouter: RouteConfigsTable = {
|
const nestedRouter: RouteConfigsTable = {
|
||||||
@ -20,7 +20,7 @@ const nestedRouter: RouteConfigsTable = {
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "/nested/menu1/menu1-1",
|
path: "/nested/menu1/menu1-1",
|
||||||
component: () => import("/@/views/nested/menu1/menu1-1/index.vue"),
|
component: () => import("@/views/nested/menu1/menu1-1/index.vue"),
|
||||||
name: "Menu1-1",
|
name: "Menu1-1",
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsmenu1-1"),
|
title: $t("menus.hsmenu1-1"),
|
||||||
@ -38,7 +38,7 @@ const nestedRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/nested/menu1/menu1-2/menu1-2-1",
|
path: "/nested/menu1/menu1-2/menu1-2-1",
|
||||||
component: () =>
|
component: () =>
|
||||||
import("/@/views/nested/menu1/menu1-2/menu1-2-1/index.vue"),
|
import("@/views/nested/menu1/menu1-2/menu1-2-1/index.vue"),
|
||||||
name: "Menu1-2-1",
|
name: "Menu1-2-1",
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsmenu1-2-1"),
|
title: $t("menus.hsmenu1-2-1"),
|
||||||
@ -48,7 +48,7 @@ const nestedRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/nested/menu1/menu1-2/menu1-2-2",
|
path: "/nested/menu1/menu1-2/menu1-2-2",
|
||||||
component: () =>
|
component: () =>
|
||||||
import("/@/views/nested/menu1/menu1-2/menu1-2-2/index.vue"),
|
import("@/views/nested/menu1/menu1-2/menu1-2-2/index.vue"),
|
||||||
name: "Menu1-2-2",
|
name: "Menu1-2-2",
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsmenu1-2-2"),
|
title: $t("menus.hsmenu1-2-2"),
|
||||||
@ -63,7 +63,7 @@ const nestedRouter: RouteConfigsTable = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/nested/menu1/menu1-3",
|
path: "/nested/menu1/menu1-3",
|
||||||
component: () => import("/@/views/nested/menu1/menu1-3/index.vue"),
|
component: () => import("@/views/nested/menu1/menu1-3/index.vue"),
|
||||||
name: "Menu1-3",
|
name: "Menu1-3",
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsmenu1-3"),
|
title: $t("menus.hsmenu1-3"),
|
||||||
@ -75,7 +75,7 @@ const nestedRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/nested/menu2",
|
path: "/nested/menu2",
|
||||||
name: "Menu2",
|
name: "Menu2",
|
||||||
component: () => import("/@/views/nested/menu2/index.vue"),
|
component: () => import("@/views/nested/menu2/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsmenu2"),
|
title: $t("menus.hsmenu2"),
|
||||||
keepAlive: true
|
keepAlive: true
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
const IFrame = () => import("/@/layout/frameView.vue");
|
const IFrame = () => import("@/layout/frameView.vue");
|
||||||
|
|
||||||
const pptRouter: RouteConfigsTable = {
|
const pptRouter: RouteConfigsTable = {
|
||||||
path: "/ppt",
|
path: "/ppt",
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
const Layout = () => import("/@/layout/index.vue");
|
const Layout = () => import("@/layout/index.vue");
|
||||||
|
|
||||||
const remainingRouter: Array<RouteConfigsTable> = [
|
const remainingRouter: Array<RouteConfigsTable> = [
|
||||||
{
|
{
|
||||||
path: "/login",
|
path: "/login",
|
||||||
name: "Login",
|
name: "Login",
|
||||||
component: () => import("/@/views/login/index.vue"),
|
component: () => import("@/views/login/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hslogin"),
|
title: $t("menus.hslogin"),
|
||||||
showLink: false,
|
showLink: false,
|
||||||
@ -26,7 +26,7 @@ const remainingRouter: Array<RouteConfigsTable> = [
|
|||||||
{
|
{
|
||||||
path: "/redirect/:path(.*)",
|
path: "/redirect/:path(.*)",
|
||||||
name: "Redirect",
|
name: "Redirect",
|
||||||
component: () => import("/@/layout/redirect.vue")
|
component: () => import("@/layout/redirect.vue")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -34,7 +34,7 @@ const remainingRouter: Array<RouteConfigsTable> = [
|
|||||||
{
|
{
|
||||||
path: "/empty",
|
path: "/empty",
|
||||||
name: "Empty",
|
name: "Empty",
|
||||||
component: () => import("/@/views/empty/index.vue"),
|
component: () => import("@/views/empty/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsempty"),
|
title: $t("menus.hsempty"),
|
||||||
showLink: false,
|
showLink: false,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
import type { RouteConfigsTable } from "/#/index";
|
import type { RouteConfigsTable } from "/#/index";
|
||||||
|
|
||||||
const resultRouter: RouteConfigsTable = {
|
const resultRouter: RouteConfigsTable = {
|
||||||
@ -13,7 +13,7 @@ const resultRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/result/success",
|
path: "/result/success",
|
||||||
name: "Success",
|
name: "Success",
|
||||||
component: () => import("/@/views/result/success.vue"),
|
component: () => import("@/views/result/success.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsSuccess")
|
title: $t("menus.hsSuccess")
|
||||||
}
|
}
|
||||||
@ -21,7 +21,7 @@ const resultRouter: RouteConfigsTable = {
|
|||||||
{
|
{
|
||||||
path: "/result/fail",
|
path: "/result/fail",
|
||||||
name: "Fail",
|
name: "Fail",
|
||||||
component: () => import("/@/views/result/fail.vue"),
|
component: () => import("@/views/result/fail.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hsFail")
|
title: $t("menus.hsFail")
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ import { router } from "./index";
|
|||||||
import { isProxy, toRaw } from "vue";
|
import { isProxy, toRaw } from "vue";
|
||||||
import { loadEnv } from "../../build";
|
import { loadEnv } from "../../build";
|
||||||
import { useTimeoutFn } from "@vueuse/core";
|
import { useTimeoutFn } from "@vueuse/core";
|
||||||
import { RouteConfigs } from "/@/layout/types";
|
import { RouteConfigs } from "@/layout/types";
|
||||||
import {
|
import {
|
||||||
isString,
|
isString,
|
||||||
storageSession,
|
storageSession,
|
||||||
@ -18,14 +18,14 @@ import {
|
|||||||
isIncludeAllChildren
|
isIncludeAllChildren
|
||||||
} from "@pureadmin/utils";
|
} from "@pureadmin/utils";
|
||||||
import { cloneDeep, intersection } from "lodash-unified";
|
import { cloneDeep, intersection } from "lodash-unified";
|
||||||
import { sessionKey, type DataInfo } from "/@/utils/auth";
|
import { sessionKey, type DataInfo } from "@/utils/auth";
|
||||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||||
const IFrame = () => import("/@/layout/frameView.vue");
|
const IFrame = () => import("@/layout/frameView.vue");
|
||||||
// https://cn.vitejs.dev/guide/features.html#glob-import
|
// https://cn.vitejs.dev/guide/features.html#glob-import
|
||||||
const modulesRoutes = import.meta.glob("/src/views/**/*.{vue,tsx}");
|
const modulesRoutes = import.meta.glob("/src/views/**/*.{vue,tsx}");
|
||||||
|
|
||||||
// 动态路由
|
// 动态路由
|
||||||
import { getAsyncRoutes } from "/@/api/routes";
|
import { getAsyncRoutes } from "@/api/routes";
|
||||||
|
|
||||||
/** 按照路由中meta下的rank等级升序来排序路由 */
|
/** 按照路由中meta下的rank等级升序来排序路由 */
|
||||||
function ascending(arr: any[]) {
|
function ascending(arr: any[]) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { store } from "/@/store";
|
import { store } from "@/store";
|
||||||
import { appType } from "./types";
|
import { appType } from "./types";
|
||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { getConfig } from "/@/config";
|
import { getConfig } from "@/config";
|
||||||
import type { StorageConfigs } from "/#/index";
|
import type { StorageConfigs } from "/#/index";
|
||||||
import { deviceDetection, storageLocal } from "@pureadmin/utils";
|
import { deviceDetection, storageLocal } from "@pureadmin/utils";
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { store } from "/@/store";
|
import { store } from "@/store";
|
||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { getConfig } from "/@/config";
|
import { getConfig } from "@/config";
|
||||||
import type { StorageConfigs } from "/#/index";
|
import type { StorageConfigs } from "/#/index";
|
||||||
import { storageLocal } from "@pureadmin/utils";
|
import { storageLocal } from "@pureadmin/utils";
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { store } from "/@/store";
|
import { store } from "@/store";
|
||||||
import { isEqual } from "lodash-unified";
|
import { isEqual } from "lodash-unified";
|
||||||
import type { StorageConfigs } from "/#/index";
|
import type { StorageConfigs } from "/#/index";
|
||||||
import { routerArrays } from "/@/layout/types";
|
import { routerArrays } from "@/layout/types";
|
||||||
import { multiType, positionType } from "./types";
|
import { multiType, positionType } from "./types";
|
||||||
import { isUrl, storageLocal } from "@pureadmin/utils";
|
import { isUrl, storageLocal } from "@pureadmin/utils";
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { store } from "/@/store";
|
import { store } from "@/store";
|
||||||
import { cacheType } from "./types";
|
import { cacheType } from "./types";
|
||||||
import { constantMenus } from "/@/router";
|
import { constantMenus } from "@/router";
|
||||||
import { ascending, filterTree, filterNoPermissionTree } from "/@/router/utils";
|
import { ascending, filterTree, filterNoPermissionTree } from "@/router/utils";
|
||||||
|
|
||||||
export const usePermissionStore = defineStore({
|
export const usePermissionStore = defineStore({
|
||||||
id: "pure-permission",
|
id: "pure-permission",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { store } from "/@/store";
|
import { store } from "@/store";
|
||||||
import { setType } from "./types";
|
import { setType } from "./types";
|
||||||
import { getConfig } from "/@/config";
|
import { getConfig } from "@/config";
|
||||||
|
|
||||||
export const useSettingStore = defineStore({
|
export const useSettingStore = defineStore({
|
||||||
id: "pure-setting",
|
id: "pure-setting",
|
||||||
|
@ -1,18 +1,13 @@
|
|||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { store } from "/@/store";
|
import { store } from "@/store";
|
||||||
import { userType } from "./types";
|
import { userType } from "./types";
|
||||||
import { routerArrays } from "/@/layout/types";
|
import { routerArrays } from "@/layout/types";
|
||||||
import { router, resetRouter } from "/@/router";
|
import { router, resetRouter } from "@/router";
|
||||||
import { storageSession } from "@pureadmin/utils";
|
import { storageSession } from "@pureadmin/utils";
|
||||||
import { getLogin, refreshTokenApi } from "/@/api/user";
|
import { getLogin, refreshTokenApi } from "@/api/user";
|
||||||
import { UserResult, RefreshTokenResult } from "/@/api/user";
|
import { UserResult, RefreshTokenResult } from "@/api/user";
|
||||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||||
import {
|
import { type DataInfo, setToken, removeToken, sessionKey } from "@/utils/auth";
|
||||||
type DataInfo,
|
|
||||||
setToken,
|
|
||||||
removeToken,
|
|
||||||
sessionKey
|
|
||||||
} from "/@/utils/auth";
|
|
||||||
|
|
||||||
export const useUserStore = defineStore({
|
export const useUserStore = defineStore({
|
||||||
id: "pure-user",
|
id: "pure-user",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import Cookies from "js-cookie";
|
import Cookies from "js-cookie";
|
||||||
import { storageSession } from "@pureadmin/utils";
|
import { storageSession } from "@pureadmin/utils";
|
||||||
import { useUserStoreHook } from "/@/store/modules/user";
|
import { useUserStoreHook } from "@/store/modules/user";
|
||||||
|
|
||||||
export interface DataInfo<T> {
|
export interface DataInfo<T> {
|
||||||
/** token */
|
/** token */
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
### Get 请求
|
### Get 请求
|
||||||
|
|
||||||
```
|
```
|
||||||
import { http } from "/@/utils/http";
|
import { http } from "@/utils/http";
|
||||||
|
|
||||||
// params传参
|
// params传参
|
||||||
http.request('get', '/xxx', { params: param });
|
http.request('get', '/xxx', { params: param });
|
||||||
@ -15,7 +15,7 @@ http.request('get', '/xxx?message=' + msg);
|
|||||||
### Post 请求
|
### Post 请求
|
||||||
|
|
||||||
```
|
```
|
||||||
import { http } from "/@/utils/http";
|
import { http } from "@/utils/http";
|
||||||
|
|
||||||
// params传参
|
// params传参
|
||||||
http.request('post', '/xxx', { params: param });
|
http.request('post', '/xxx', { params: param });
|
||||||
|
@ -12,8 +12,8 @@ import {
|
|||||||
import { stringify } from "qs";
|
import { stringify } from "qs";
|
||||||
import NProgress from "../progress";
|
import NProgress from "../progress";
|
||||||
// import { loadEnv } from "@build/index";
|
// import { loadEnv } from "@build/index";
|
||||||
import { getToken } from "/@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
import { useUserStoreHook } from "/@/store/modules/user";
|
import { useUserStoreHook } from "@/store/modules/user";
|
||||||
|
|
||||||
// 加载环境变量 VITE_PROXY_DOMAIN(开发环境) VITE_PROXY_DOMAIN_REAL(打包后的线上环境)
|
// 加载环境变量 VITE_PROXY_DOMAIN(开发环境) VITE_PROXY_DOMAIN_REAL(打包后的线上环境)
|
||||||
// const { VITE_PROXY_DOMAIN, VITE_PROXY_DOMAIN_REAL } = loadEnv();
|
// const { VITE_PROXY_DOMAIN, VITE_PROXY_DOMAIN_REAL } = loadEnv();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// 响应式storage
|
// 响应式storage
|
||||||
import { App } from "vue";
|
import { App } from "vue";
|
||||||
import Storage from "responsive-storage";
|
import Storage from "responsive-storage";
|
||||||
import { routerArrays } from "/@/layout/types";
|
import { routerArrays } from "@/layout/types";
|
||||||
|
|
||||||
const nameSpace = "responsive-";
|
const nameSpace = "responsive-";
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import ReBarcode from "/@/components/ReBarcode";
|
import ReBarcode from "@/components/ReBarcode";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "BarCode"
|
name: "BarCode"
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
regionDataPlus,
|
regionDataPlus,
|
||||||
regionData,
|
regionData,
|
||||||
CodeToText
|
CodeToText
|
||||||
} from "/@/utils/chinaArea";
|
} from "@/utils/chinaArea";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import { IconSelect } from "/@/components/ReIcon";
|
import { IconSelect } from "@/components/ReIcon";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "IconSelect"
|
name: "IconSelect"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
import { cloneDeep } from "lodash-unified";
|
import { cloneDeep } from "lodash-unified";
|
||||||
import { transformI18n } from "/@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import ElTreeLine from "/@/components/ReTreeLine";
|
import ElTreeLine from "@/components/ReTreeLine";
|
||||||
import { extractPathList, deleteChildren } from "@pureadmin/utils";
|
import { extractPathList, deleteChildren } from "@pureadmin/utils";
|
||||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "LineTree"
|
name: "LineTree"
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
import { ref, computed } from "vue";
|
import { ref, computed } from "vue";
|
||||||
import { cloneDeep } from "lodash-unified";
|
import { cloneDeep } from "lodash-unified";
|
||||||
import type { ElTreeV2 } from "element-plus";
|
import type { ElTreeV2 } from "element-plus";
|
||||||
import { transformI18n } from "/@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
import { extractPathList, deleteChildren } from "@pureadmin/utils";
|
import { extractPathList, deleteChildren } from "@pureadmin/utils";
|
||||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||||
import type { TreeNode } from "element-plus/es/components/tree-v2/src/types";
|
import type { TreeNode } from "element-plus/es/components/tree-v2/src/types";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Print from "/@/utils/print";
|
import Print from "@/utils/print";
|
||||||
import { reactive, ref } from "vue";
|
import { reactive, ref } from "vue";
|
||||||
import { VxeTablePropTypes } from "vxe-table";
|
import { VxeTablePropTypes } from "vxe-table";
|
||||||
import Line from "../welcome/components/Line.vue";
|
import Line from "../welcome/components/Line.vue";
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, unref } from "vue";
|
import { ref, unref } from "vue";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import avatars from "/@/assets/avatars.jpg";
|
import avatars from "@/assets/avatars.jpg";
|
||||||
import ReQrcode from "/@/components/ReQrcode";
|
import ReQrcode from "@/components/ReQrcode";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "QrCode"
|
name: "QrCode"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
import { useRenderFlicker } from "/@/components/ReFlicker";
|
import { useRenderFlicker } from "@/components/ReFlicker";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "TimeLine"
|
name: "TimeLine"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ReNormalCountTo, ReboundCountTo } from "/@/components/ReCountTo";
|
import { ReNormalCountTo, ReboundCountTo } from "@/components/ReCountTo";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "CountTo"
|
name: "CountTo"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, nextTick } from "vue";
|
import { ref, nextTick } from "vue";
|
||||||
import Cropper from "/@/components/ReCropper";
|
import Cropper from "@/components/ReCropper";
|
||||||
import img from "./picture.jpeg";
|
import img from "./picture.jpeg";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import Sortable from "sortablejs";
|
import Sortable from "sortablejs";
|
||||||
import { ref, onMounted } from "vue";
|
import { ref, onMounted } from "vue";
|
||||||
import draggable from "vuedraggable/src/vuedraggable";
|
import draggable from "vuedraggable/src/vuedraggable";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "Draggable"
|
name: "Draggable"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Amap } from "/@/components/ReMap";
|
import { Amap } from "@/components/ReMap";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "Map"
|
name: "Map"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive, unref } from "vue";
|
import { ref, reactive, unref } from "vue";
|
||||||
import { templateRef } from "@vueuse/core";
|
import { templateRef } from "@vueuse/core";
|
||||||
import SeamlessScroll from "/@/components/ReSeamlessScroll";
|
import SeamlessScroll from "@/components/ReSeamlessScroll";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "SeamlessScroll"
|
name: "SeamlessScroll"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import Selector from "/@/components/ReSelector";
|
import Selector from "@/components/ReSelector";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "Selector"
|
name: "Selector"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import splitpane, { ContextProps } from "/@/components/ReSplitPane";
|
import splitpane, { ContextProps } from "@/components/ReSplitPane";
|
||||||
import { reactive } from "vue";
|
import { reactive } from "vue";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import TypeIt from "/@/components/ReTypeit";
|
import TypeIt from "@/components/ReTypeit";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "Typeit"
|
name: "Typeit"
|
||||||
|
@ -5,7 +5,7 @@ import volume from "xgplayer/es/controls/volume";
|
|||||||
import { deviceDetection } from "@pureadmin/utils";
|
import { deviceDetection } from "@pureadmin/utils";
|
||||||
import screenShot from "xgplayer/es/controls/screenShot";
|
import screenShot from "xgplayer/es/controls/screenShot";
|
||||||
import playbackRate from "xgplayer/es/controls/playbackRate";
|
import playbackRate from "xgplayer/es/controls/playbackRate";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "Video"
|
name: "Video"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import "@wangeditor/editor/dist/css/style.css"; // 引入 css
|
import "@wangeditor/editor/dist/css/style.css"; // 引入 css
|
||||||
import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
|
import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
import { onBeforeUnmount, ref, shallowRef, onMounted } from "vue";
|
import { onBeforeUnmount, ref, shallowRef, onMounted } from "vue";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import back from "/@/assets/svg/back.svg?component";
|
import back from "@/assets/svg/back.svg?component";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "Empty"
|
name: "Empty"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import noAccess from "/@/assets/status/403.svg?component";
|
import noAccess from "@/assets/status/403.svg?component";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "403"
|
name: "403"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import noExist from "/@/assets/status/404.svg?component";
|
import noExist from "@/assets/status/404.svg?component";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "404"
|
name: "404"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import noServer from "/@/assets/status/500.svg?component";
|
import noServer from "@/assets/status/500.svg?component";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "500"
|
name: "500"
|
||||||
|
@ -5,11 +5,11 @@ import "@logicflow/extension/lib/style/index.css";
|
|||||||
|
|
||||||
import LogicFlow from "@logicflow/core";
|
import LogicFlow from "@logicflow/core";
|
||||||
import { ref, unref, onMounted } from "vue";
|
import { ref, unref, onMounted } from "vue";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
import { BpmnNode } from "/@/components/ReFlowChart/src/config";
|
import { BpmnNode } from "@/components/ReFlowChart/src/config";
|
||||||
import { Snapshot, BpmnElement, Menu } from "@logicflow/extension";
|
import { Snapshot, BpmnElement, Menu } from "@logicflow/extension";
|
||||||
import { Control, NodePanel, DataDialog } from "/@/components/ReFlowChart";
|
import { Control, NodePanel, DataDialog } from "@/components/ReFlowChart";
|
||||||
import { toLogicflowData } from "/@/components/ReFlowChart/src/adpterForTurbo";
|
import { toLogicflowData } from "@/components/ReFlowChart/src/adpterForTurbo";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "FlowChart"
|
name: "FlowChart"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, PropType } from "vue";
|
import { computed, PropType } from "vue";
|
||||||
import shopIcon from "/@/assets/svg/shop.svg?component";
|
import shopIcon from "@/assets/svg/shop.svg?component";
|
||||||
import laptopIcon from "/@/assets/svg/laptop.svg?component";
|
import laptopIcon from "@/assets/svg/laptop.svg?component";
|
||||||
import serviceIcon from "/@/assets/svg/service.svg?component";
|
import serviceIcon from "@/assets/svg/service.svg?component";
|
||||||
import calendarIcon from "/@/assets/svg/calendar.svg?component";
|
import calendarIcon from "@/assets/svg/calendar.svg?component";
|
||||||
import userAvatarIcon from "/@/assets/svg/user_avatar.svg?component";
|
import userAvatarIcon from "@/assets/svg/user_avatar.svg?component";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "ReCard"
|
name: "ReCard"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Card from "./components/Card.vue";
|
import Card from "./components/Card.vue";
|
||||||
import { getCardList } from "/@/api/list";
|
import { getCardList } from "@/api/list";
|
||||||
import { ref, onMounted, nextTick } from "vue";
|
import { ref, onMounted, nextTick } from "vue";
|
||||||
import dialogForm from "./components/DialogForm.vue";
|
import dialogForm from "./components/DialogForm.vue";
|
||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "ListCard"
|
name: "ListCard"
|
||||||
|
@ -5,10 +5,10 @@ import Motion from "../utils/motion";
|
|||||||
import { phoneRules } from "../utils/rule";
|
import { phoneRules } from "../utils/rule";
|
||||||
import { message } from "@pureadmin/components";
|
import { message } from "@pureadmin/components";
|
||||||
import type { FormInstance } from "element-plus";
|
import type { FormInstance } from "element-plus";
|
||||||
import { $t, transformI18n } from "/@/plugins/i18n";
|
import { $t, transformI18n } from "@/plugins/i18n";
|
||||||
import { useVerifyCode } from "../utils/verifyCode";
|
import { useVerifyCode } from "../utils/verifyCode";
|
||||||
import { useUserStoreHook } from "/@/store/modules/user";
|
import { useUserStoreHook } from "@/store/modules/user";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import Motion from "../utils/motion";
|
import Motion from "../utils/motion";
|
||||||
import ReQrcode from "/@/components/ReQrcode";
|
import ReQrcode from "@/components/ReQrcode";
|
||||||
import { useUserStoreHook } from "/@/store/modules/user";
|
import { useUserStoreHook } from "@/store/modules/user";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
</script>
|
</script>
|
||||||
|
@ -6,9 +6,9 @@ import { updateRules } from "../utils/rule";
|
|||||||
import { message } from "@pureadmin/components";
|
import { message } from "@pureadmin/components";
|
||||||
import type { FormInstance } from "element-plus";
|
import type { FormInstance } from "element-plus";
|
||||||
import { useVerifyCode } from "../utils/verifyCode";
|
import { useVerifyCode } from "../utils/verifyCode";
|
||||||
import { $t, transformI18n } from "/@/plugins/i18n";
|
import { $t, transformI18n } from "@/plugins/i18n";
|
||||||
import { useUserStoreHook } from "/@/store/modules/user";
|
import { useUserStoreHook } from "@/store/modules/user";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const checked = ref(false);
|
const checked = ref(false);
|
||||||
|
@ -6,9 +6,9 @@ import { updateRules } from "../utils/rule";
|
|||||||
import { message } from "@pureadmin/components";
|
import { message } from "@pureadmin/components";
|
||||||
import type { FormInstance } from "element-plus";
|
import type { FormInstance } from "element-plus";
|
||||||
import { useVerifyCode } from "../utils/verifyCode";
|
import { useVerifyCode } from "../utils/verifyCode";
|
||||||
import { $t, transformI18n } from "/@/plugins/i18n";
|
import { $t, transformI18n } from "@/plugins/i18n";
|
||||||
import { useUserStoreHook } from "/@/store/modules/user";
|
import { useUserStoreHook } from "@/store/modules/user";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
@ -12,27 +12,27 @@ import Motion from "./utils/motion";
|
|||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import { loginRules } from "./utils/rule";
|
import { loginRules } from "./utils/rule";
|
||||||
import phone from "./components/phone.vue";
|
import phone from "./components/phone.vue";
|
||||||
import TypeIt from "/@/components/ReTypeit";
|
import TypeIt from "@/components/ReTypeit";
|
||||||
import qrCode from "./components/qrCode.vue";
|
import qrCode from "./components/qrCode.vue";
|
||||||
import regist from "./components/regist.vue";
|
import regist from "./components/regist.vue";
|
||||||
import update from "./components/update.vue";
|
import update from "./components/update.vue";
|
||||||
import { initRouter } from "/@/router/utils";
|
import { initRouter } from "@/router/utils";
|
||||||
import { useNav } from "/@/layout/hooks/useNav";
|
import { useNav } from "@/layout/hooks/useNav";
|
||||||
import { message } from "@pureadmin/components";
|
import { message } from "@pureadmin/components";
|
||||||
import type { FormInstance } from "element-plus";
|
import type { FormInstance } from "element-plus";
|
||||||
import { $t, transformI18n } from "/@/plugins/i18n";
|
import { $t, transformI18n } from "@/plugins/i18n";
|
||||||
import { operates, thirdParty } from "./utils/enums";
|
import { operates, thirdParty } from "./utils/enums";
|
||||||
import { useLayout } from "/@/layout/hooks/useLayout";
|
import { useLayout } from "@/layout/hooks/useLayout";
|
||||||
import { useUserStoreHook } from "/@/store/modules/user";
|
import { useUserStoreHook } from "@/store/modules/user";
|
||||||
import { bg, avatar, currentWeek } from "./utils/static";
|
import { bg, avatar, currentWeek } from "./utils/static";
|
||||||
import { ReImageVerify } from "/@/components/ReImageVerify";
|
import { ReImageVerify } from "@/components/ReImageVerify";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
import { useTranslationLang } from "/@/layout/hooks/useTranslationLang";
|
import { useTranslationLang } from "@/layout/hooks/useTranslationLang";
|
||||||
import { useDataThemeChange } from "/@/layout/hooks/useDataThemeChange";
|
import { useDataThemeChange } from "@/layout/hooks/useDataThemeChange";
|
||||||
|
|
||||||
import dayIcon from "/@/assets/svg/day.svg?component";
|
import dayIcon from "@/assets/svg/day.svg?component";
|
||||||
import darkIcon from "/@/assets/svg/dark.svg?component";
|
import darkIcon from "@/assets/svg/dark.svg?component";
|
||||||
import globalization from "/@/assets/svg/globalization.svg?component";
|
import globalization from "@/assets/svg/globalization.svg?component";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "Login"
|
name: "Login"
|
||||||
@ -296,7 +296,7 @@ watch(imgCode, value => {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@import url("/@/style/login.css");
|
@import url("@/style/login.css");
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { $t } from "/@/plugins/i18n";
|
import { $t } from "@/plugins/i18n";
|
||||||
|
|
||||||
const operates = [
|
const operates = [
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { reactive } from "vue";
|
import { reactive } from "vue";
|
||||||
import { isPhone } from "@pureadmin/utils";
|
import { isPhone } from "@pureadmin/utils";
|
||||||
import type { FormRules } from "element-plus";
|
import type { FormRules } from "element-plus";
|
||||||
import { $t, transformI18n } from "/@/plugins/i18n";
|
import { $t, transformI18n } from "@/plugins/i18n";
|
||||||
import { useUserStoreHook } from "/@/store/modules/user";
|
import { useUserStoreHook } from "@/store/modules/user";
|
||||||
|
|
||||||
/** 6位数字验证码正则 */
|
/** 6位数字验证码正则 */
|
||||||
export const REGEXP_SIX = /^\d{6}$/;
|
export const REGEXP_SIX = /^\d{6}$/;
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
import bg from "/@/assets/login/bg.png";
|
import bg from "@/assets/login/bg.png";
|
||||||
import avatar from "/@/assets/login/avatar.svg?component";
|
import avatar from "@/assets/login/avatar.svg?component";
|
||||||
import illustration0 from "/@/assets/login/illustration0.svg?component";
|
import illustration0 from "@/assets/login/illustration0.svg?component";
|
||||||
import illustration1 from "/@/assets/login/illustration1.svg?component";
|
import illustration1 from "@/assets/login/illustration1.svg?component";
|
||||||
import illustration2 from "/@/assets/login/illustration2.svg?component";
|
import illustration2 from "@/assets/login/illustration2.svg?component";
|
||||||
import illustration3 from "/@/assets/login/illustration3.svg?component";
|
import illustration3 from "@/assets/login/illustration3.svg?component";
|
||||||
import illustration4 from "/@/assets/login/illustration4.svg?component";
|
import illustration4 from "@/assets/login/illustration4.svg?component";
|
||||||
import illustration5 from "/@/assets/login/illustration5.svg?component";
|
import illustration5 from "@/assets/login/illustration5.svg?component";
|
||||||
import illustration6 from "/@/assets/login/illustration6.svg?component";
|
import illustration6 from "@/assets/login/illustration6.svg?component";
|
||||||
|
|
||||||
/** Show a different background every day */
|
/** Show a different background every day */
|
||||||
const currentWeek = computed(() => {
|
const currentWeek = computed(() => {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { type CSSProperties, computed } from "vue";
|
import { type CSSProperties, computed } from "vue";
|
||||||
import { hasAuth, getAuths } from "/@/router/utils";
|
import { hasAuth, getAuths } from "@/router/utils";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "PermissionButton"
|
name: "PermissionButton"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { initRouter } from "/@/router/utils";
|
import { initRouter } from "@/router/utils";
|
||||||
import { type CSSProperties, ref, computed } from "vue";
|
import { type CSSProperties, ref, computed } from "vue";
|
||||||
import { useUserStoreHook } from "/@/store/modules/user";
|
import { useUserStoreHook } from "@/store/modules/user";
|
||||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "PermissionPage"
|
name: "PermissionPage"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IconifyIconOffline } from "/@/components/ReIcon";
|
import { IconifyIconOffline } from "@/components/ReIcon";
|
||||||
|
|
||||||
export function useColumns() {
|
export function useColumns() {
|
||||||
const columns = [
|
const columns = [
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useColumns } from "./columns";
|
import { useColumns } from "./columns";
|
||||||
import { getDeptList } from "/@/api/system";
|
import { getDeptList } from "@/api/system";
|
||||||
import { FormInstance } from "element-plus";
|
import { FormInstance } from "element-plus";
|
||||||
import { handleTree } from "@pureadmin/utils";
|
import { handleTree } from "@pureadmin/utils";
|
||||||
import { reactive, ref, onMounted } from "vue";
|
import { reactive, ref, onMounted } from "vue";
|
||||||
import { TableProBar } from "/@/components/ReTable";
|
import { TableProBar } from "@/components/ReTable";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "Dept"
|
name: "Dept"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { ref, reactive } from "vue";
|
import { ref, reactive } from "vue";
|
||||||
import { type Direction } from "element-plus";
|
import { type Direction } from "element-plus";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
import { type VxeTableEvents, type VxeTableInstance } from "vxe-table";
|
import { type VxeTableEvents, type VxeTableInstance } from "vxe-table";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
@ -5,7 +5,7 @@ import { useI18n } from "vue-i18n";
|
|||||||
import { cloneDeep } from "lodash-unified";
|
import { cloneDeep } from "lodash-unified";
|
||||||
import { reactive, ref, unref, nextTick } from "vue";
|
import { reactive, ref, unref, nextTick } from "vue";
|
||||||
import { useCopyToClipboard } from "@pureadmin/utils";
|
import { useCopyToClipboard } from "@pureadmin/utils";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
import {
|
import {
|
||||||
VXETable,
|
VXETable,
|
||||||
type TablePublicMethods,
|
type TablePublicMethods,
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useColumns } from "./columns";
|
import { useColumns } from "./columns";
|
||||||
import { getRoleList } from "/@/api/system";
|
import { getRoleList } from "@/api/system";
|
||||||
import { reactive, ref, onMounted } from "vue";
|
import { reactive, ref, onMounted } from "vue";
|
||||||
import { type FormInstance } from "element-plus";
|
import { type FormInstance } from "element-plus";
|
||||||
import { TableProBar } from "/@/components/ReTable";
|
import { TableProBar } from "@/components/ReTable";
|
||||||
import { type PaginationProps } from "@pureadmin/table";
|
import { type PaginationProps } from "@pureadmin/table";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "Role"
|
name: "Role"
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import tree from "./tree.vue";
|
import tree from "./tree.vue";
|
||||||
import { useColumns } from "./columns";
|
import { useColumns } from "./columns";
|
||||||
import { getUserList } from "/@/api/system";
|
import { getUserList } from "@/api/system";
|
||||||
import { reactive, ref, onMounted } from "vue";
|
import { reactive, ref, onMounted } from "vue";
|
||||||
import { type FormInstance } from "element-plus";
|
import { type FormInstance } from "element-plus";
|
||||||
import { TableProBar } from "/@/components/ReTable";
|
import { TableProBar } from "@/components/ReTable";
|
||||||
import { type PaginationProps } from "@pureadmin/table";
|
import { type PaginationProps } from "@pureadmin/table";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "User"
|
name: "User"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { ElTree } from "element-plus";
|
import type { ElTree } from "element-plus";
|
||||||
import { getDeptList } from "/@/api/system";
|
import { getDeptList } from "@/api/system";
|
||||||
import { handleTree } from "@pureadmin/utils";
|
import { handleTree } from "@pureadmin/utils";
|
||||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
import { ref, watch, onMounted, getCurrentInstance } from "vue";
|
import { ref, watch, onMounted, getCurrentInstance } from "vue";
|
||||||
|
|
||||||
interface Tree {
|
interface Tree {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user