Commit b1a95b3d by 高源

11月15日dll版本

parent 5a61ca9b
No preview for this file type
# backend service base url, test environment
VITE_SERVICE_BASE_URL='http://localhost:80'
VITE_SERVICE_BASE_URL=''
# other backend service base url, test environment
VITE_OTHER_SERVICE_BASE_URL= `{
......
This source diff could not be displayed because it is too large. You can view the blob instead.
<!doctype html>
<html lang="zh-cmn-Hans">
<head>
<meta name="buildTime" content="2024-10-31 20:14:53">
<meta name="buildTime" content="2024-11-15 14:25:42">
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<title>VueDashboard</title>
<script type="module" crossorigin src="/assets/index-DzQnvhQn.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-D2Uxt_18.css">
<script type="module" crossorigin src="/Content/VueDashboardUi/VueDashboard1/assets/index-C21dpL_i.js"></script>
<link rel="stylesheet" crossorigin href="/Content/VueDashboardUi/VueDashboard1/assets/index-obeHIzyq.css">
</head>
<body>
<div id="app"></div>
......
......@@ -66,7 +66,8 @@
"vue": "3.4.35",
"vue-draggable-plus": "0.5.2",
"vue-i18n": "9.13.1",
"vue-router": "4.4.1"
"vue-router": "4.4.1",
"vue3-sfc-loader": "^0.9.5"
},
"devDependencies": {
"@elegant-router/vue": "0.3.8",
......
......@@ -40,7 +40,6 @@ const renderIcon = (menuOption: any) => {
<template>
<Teleport :to="`#${GLOBAL_HEADER_MENU_ID}`">
1
<NMenu
mode="horizontal"
:value="selectedKey"
......
......@@ -53,7 +53,6 @@ const renderIcon = (menuOption: any) => {
<template>
<Teleport :to="`#${GLOBAL_HEADER_MENU_ID}`">
2
<NMenu
mode="horizontal"
:value="selectedKey"
......@@ -65,7 +64,6 @@ const renderIcon = (menuOption: any) => {
></NMenu>
</Teleport>
<Teleport :to="`#${GLOBAL_SIDER_MENU_ID}`">
1
<FirstLevelMenu
:menus="allMenus"
:active-menu-key="activeFirstLevelMenuKey"
......
......@@ -80,7 +80,6 @@ const renderIcon = (menuOption: any) => {
<template>
<Teleport :to="`#${GLOBAL_HEADER_MENU_ID}`">
3
<NMenu
mode="horizontal"
:value="activeFirstLevelMenuKey"
......@@ -92,7 +91,6 @@ const renderIcon = (menuOption: any) => {
</Teleport>
<Teleport :to="`#${GLOBAL_SIDER_MENU_ID}`">
<SimpleScrollbar>
3
<NMenu
v-model:expanded-keys="expandedKeys"
mode="vertical"
......
......@@ -66,7 +66,6 @@ const renderIcon = (menuOption: any) => {
<template>
<Teleport :to="`#${GLOBAL_SIDER_MENU_ID}`">
<SimpleScrollbar>
4
<NMenu
v-model:expanded-keys="expandedKeys"
mode="vertical"
......
......@@ -133,7 +133,6 @@ const renderIcon = (menuOption: any) => {
/>
</header>
<SimpleScrollbar>
5
<NMenu
v-model:expanded-keys="expandedKeys"
mode="vertical"
......
/* eslint-disable no-plusplus */
import type { CustomRoute, ElegantConstRoute, ElegantRoute } from '@elegant-router/types';
import { getRootMenu } from '@/service/api';
import { generatedRoutes } from '../elegant/routes';
import { layouts, views } from '../elegant/imports';
import { transformElegantRoutesToVueRoutes } from '../elegant/transform';
import path from 'path';
/**
* custom routes
*
......@@ -185,12 +185,11 @@ const customRoutes: CustomRoute[] = [
*
* @param MenuThree MenuThree
*/
// ${window.uiGlobalConfig.InternalCode}
// const { data: menus } = await getRootMenu(`/Restful/Kivii.Basic.Entities.Menu/Show.json?RootInternalCode=dashboard`);
const { data: menus } = await getRootMenu(
`/Restful/Kivii.Basic.Entities.Menu/Show.json?RootInternalCode=${window.globalConfig.apiUrl}`
`/Restful/Kivii.Basic.Entities.Menu/Show.json?RootInternalCode=${window.uiGlobalConfig.InternalCode}`
);
console.log(window.globalConfig.apiUrl);
// const rootMenu =getRootMenu('/Restful/Kivii.Basic.Entities.Menu/Show.json?RootInternalCode=Dashboard');
const MenuThree = await getMenuThree(menus?.MenusMain?.Results);
......@@ -200,7 +199,6 @@ if (MenuThree2.length > 0) {
customRoutes.push(MenuThree2[i]);
}
}
console.log(MenuThree)
function getMenuThree(data: any) {
const cloneData = JSON.parse(JSON.stringify(data)); // 对源数据深度克隆
return cloneData.filter((father: { Kvid: any; children: any; ParentKvid: undefined }) => {
......@@ -221,7 +219,8 @@ function generateRoutes(data: any[]) {
meta: {
title: item.DisplayName,
icon: 'mdi:file-document-multiple-outline',
order: item.SortId
order: item.SortId,
keepAlive: true
},
children: []
};
......@@ -242,7 +241,9 @@ function generateRoutes(data: any[]) {
meta: {
title: child.DisplayName,
icon: child.Icon,
order: child.SortId
order: child.SortId,
keepAlive: true,
type: 'iframe'
}
};
});
......
......@@ -125,7 +125,6 @@ function getGlobalMenuByBaseRoute(route: RouteLocationNormalizedLoaded | Elegant
// 从 route.meta 中获取需要的属性
const { name, path } = route;
const { title, i18nKey, icon, localIcon, iconFontSize } = route.meta ?? {};
console.log(route.meta);
// 如果存在 i18nKey,使用 i18n 进行翻译,否则使用 title
const label = i18nKey ? $t(i18nKey) : title!;
......
......@@ -49,7 +49,6 @@ export const useThemeStore = defineStore(SetupStoreId.Theme, () => {
/** Naive theme */
const naiveTheme = computed(() => getNaiveTheme(themeColors.value, settings.value.recommendColor));
console.log(naiveTheme.value);
/**
* Settings json
*
......@@ -164,7 +163,6 @@ console.log(naiveTheme.value);
// cache theme settings when page is closed or refreshed
useEventListener(window, 'beforeunload', () => {
console.log('123')
cacheThemeSettings();
});
......
......@@ -10,7 +10,6 @@ const DARK_CLASS = 'dark';
/** Init theme settings */
export function initThemeSettings() {
const isProd = import.meta.env.PROD;
console.log(!isProd)
// if it is development mode, the theme settings will not be cached, by update `themeSettings` in `src/theme/settings.ts` to update theme settings
// localStg.set('themeSettings', themeSettings);
if (!isProd) return themeSettings;
......@@ -25,7 +24,6 @@ export function initThemeSettings() {
if (!isOverride) {
Object.assign(settings, overrideThemeSettings);
localStg.set('overrideThemeFlag', BUILD_TIME);
console.log(isOverride)
}
return settings;
......
/*# sourceMappingURL=global.css.map */
\ No newline at end of file
{"version":3,"sources":[],"names":[],"mappings":"","file":"global.css"}
\ No newline at end of file
/*# sourceMappingURL=scrollbar.css.map */
\ No newline at end of file
{"version":3,"sources":[],"names":[],"mappings":"","file":"scrollbar.css"}
\ No newline at end of file
......@@ -2,6 +2,7 @@
import { onActivated, onMounted, ref } from 'vue';
import { getSelectMenu } from '@/service/api';
import NotFound from '@/views/_builtin/404/index.vue'; // 引入 404 组件
interface Props {
url: string;
// eslint-disable-next-line vue/prop-name-casing, vue/no-unused-properties
......@@ -10,7 +11,7 @@ interface Props {
}
const { url, kvid, type } = defineProps<Props>();
const selectTag = ref(''); // 定义响应式变量 abc
const selectTag = ref(''); // 定义响应式变量
const hasError = ref(false); // 标志位,用于指示是否发生错误
onMounted(() => {
......@@ -21,6 +22,7 @@ onActivated(async () => {
// console.log('activated');
const origin = window.location.origin;
origin.split('/').slice(0, 3).join('/');
// const origin = 'http://localhost:80';
if (type === 'System') {
if (url.startsWith('App')) {
......@@ -47,6 +49,8 @@ onActivated(async () => {
hasError.value = true; // 如果请求失败,也设置错误标志位
}
}
// iframeList.value.push(selectTag.value);
// console.log(iframeList.value)
});
</script>
......
......@@ -19,8 +19,8 @@ const gap = computed(() => (appStore.isMobile ? 0 : 16));
{{ $t('page.home.branchDesc') }}
</NAlert> -->
<HeaderBanner />
<CardData />
<NGrid :x-gap="gap" :y-gap="16" responsive="screen" item-responsive>
<!-- <CardData /> -->
<!-- <NGrid :x-gap="gap" :y-gap="16" responsive="screen" item-responsive>
<NGi span="24 s:24 m:14">
<NCard :bordered="false" class="card-wrapper">
<LineChart />
......@@ -31,7 +31,7 @@ const gap = computed(() => (appStore.isMobile ? 0 : 16));
<PieChart />
</NCard>
</NGi>
</NGrid>
</NGrid> -->
<NGrid :x-gap="gap" :y-gap="16" responsive="screen" item-responsive>
<NGi span="24 s:24 m:14">
<!-- <ProjectNews /> -->
......
......@@ -46,7 +46,9 @@ export default defineConfig(configEnv => {
commonjsOptions: {
ignoreTryCatch: false
},
target: 'esnext' // 或 'es2022'
target: 'esnext', // 或 'es2022'
outDir: 'dist',
assetsDir: 'Content/VueDashboardUi/VueDashboard1/assets'
}
};
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment