Jelajahi Sumber

修复首页主题切换效果

yanglzh 3 tahun lalu
induk
melakukan
bff6dd7a23
2 mengubah file dengan 1 tambahan dan 5 penghapusan
  1. 0 2
      src/main.ts
  2. 1 3
      src/views/login/index.vue

+ 0 - 2
src/main.ts

@@ -16,8 +16,6 @@ import { getUpFileUrl, handleTree, selectDictLabel } from "/@/utils/common";
 import { useDict } from "/@/api/common/dict/data";
 // 分页组件
 import pagination from '/@/components/pagination/index.vue'
-import 'amis/sdk/sdk.js';
-import 'amis/lib/themes/default.css';
 // 引入百度地图组件
 // import BaiduMap from 'vue-baidu-map-3x'
 

+ 1 - 3
src/views/login/index.vue

@@ -8,6 +8,7 @@
 			@change="onAddDarkChange"
 			:active-icon="Sunny"
 			:inactive-icon="Moon"
+			style="--el-switch-on-color: #fff; --el-switch-off-color: #151515"
 		></el-switch>
 		<div class="part left">
 			<div class="flex logo"><img class="logoimg" src="/@/assets/logo.png" />{{ sysinfo.systemName }}</div>
@@ -21,7 +22,6 @@
 			<div class="title">登录</div>
 			<Account />
 		</div>
-		<!-- <amis :json="amisjson" /> -->
 	</div>
 </template>
 
@@ -32,7 +32,6 @@ import { useStore } from '/@/store/index';
 import logoMini from '/@/assets/logo.png';
 import { Sunny, Moon } from '@element-plus/icons-vue';
 import dayjs from 'dayjs';
-// import amis from '/@/components/amis/index.vue';
 
 const store = useStore();
 
@@ -46,7 +45,6 @@ export default defineComponent({
 	name: 'loginIndex',
 	components: {
 		Account,
-		// amis,
 	},
 	data: function () {
 		return {