From a79d67f8a9a9fa02f9d25f987b9611af965c484f Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 22 十月 2026 18:41:01 +0800
Subject: [PATCH] 修改了风格

---
 src/main.js |   25 +++++++++++++++++++++++--
 1 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/src/main.js b/src/main.js
index d800d22..6ecaa60 100644
--- a/src/main.js
+++ b/src/main.js
@@ -3,17 +3,21 @@
  * @Date: 2022-04-25 08:04:47
  * @LastEditors: your Name
  * @LastEditTime: 2022-04-25 16:33:00
- * @Description: 
+ * @Description:
  */
 import Vue from 'vue'
 import yearPicker from 'vue-year-picker'
 import Cookies from 'js-cookie'
 
 import Element from 'element-ui'
+import '@/assets/styles/tokens.css' // 璁捐浠ょ墝锛圕SS 鍙橀噺锛屼緵杩愯鏃舵崲鑲わ級
 import './assets/styles/element-variables.scss'
 
 import '@/assets/styles/index.scss' // global css
 import '@/assets/styles/ruoyi.scss' // ruoyi css
+// 杩愯鏃朵富棰樺眰 + 缁勪欢榛樿澶栬锛氬繀椤绘櫄浜� element-ui 涓� ruoyi.scss锛屽惁鍒欒鐩栦笉鐢熸晥
+import '@/assets/styles/theme-runtime.scss'
+import '@/assets/styles/element-override.scss'
 import App from './App'
 import store from './store'
 import router from './router'
@@ -27,6 +31,8 @@
 import { getConfigKey } from "@/api/system/config";
 import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi";
 import dataV from '@jiaminghi/data-view';//dataV
+// 涓婚鑹茶繍琛屾椂锛圕SS 鍙橀噺娉ㄥ叆锛�
+import { applyTheme, getStoredTheme, DEFAULT_PRIMARY } from '@/utils/theme'
 // 鍒嗛〉缁勪欢
 import Pagination from "@/components/Pagination";
 // 鑷畾涔夎〃鏍煎伐鍏风粍浠�
@@ -47,6 +53,17 @@
 // import li_area_select from '@components/Address'
 import moment from "moment"
 import '@/utils/drag.js';
+import DingTalkPC from 'dingtalk-jsapi';
+
+Vue.prototype.$dingtalk = DingTalkPC;
+DingTalkPC.config({
+  agentId: 'your_agentId',
+  corpId: 'your_corpId',
+  timeStamp: new Date().getTime(),
+  nonceStr: 'your_nonceStr',
+  signature: 'your_signature',
+  jsApiList: ['runtime.permission.requestAuthCode']
+});
 
 Vue.prototype.$moment = moment;
 
@@ -63,6 +80,7 @@
 //寮曞叆echart
 import echarts from 'echarts'
 Vue.prototype.$echarts = echarts
+
 
 // 鍏ㄥ眬缁勪欢鎸傝浇
 // Vue.component('li_area_select',li_area_select)
@@ -90,9 +108,12 @@
  */
 
 Vue.use(Element, {
-  size: Cookies.get('size') || 'medium' // set element-ui default size
+  size: Cookies.get('size') || 'small' // set element-ui default size锛堝師 medium锛屾敼涓� small 鎻愬崌淇℃伅瀵嗗害锛�
 })
 
+// 鍚姩鍗冲簲鐢ㄥ凡淇濆瓨鐨勪富棰樿壊锛堢櫥褰曢〉绛変笉浣跨敤 Layout 鐨勯〉闈篃鑳界敓鏁堬級
+applyTheme(getStoredTheme() || DEFAULT_PRIMARY)
+
 Vue.config.productionTip = false
 
 new Vue({

--
Gitblit v1.9.3