mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-10-31 22:57:15 +08:00 
			
		
		
		
	chore: 调整查询系统配置参数接口地址
This commit is contained in:
		| @@ -1,7 +1,6 @@ | ||||
| import type { TreeNodeData } from '@arco-design/web-vue' | ||||
| import http from '@/utils/http' | ||||
| import type { LabelValueState } from '@/types/global' | ||||
| import type { OptionQuery } from '@/apis' | ||||
|  | ||||
| const BASE_URL = '/common' | ||||
|  | ||||
| @@ -30,9 +29,9 @@ export function listCommonDict(code: string) { | ||||
|   return http.get<LabelValueState[]>(`${BASE_URL}/dict/${code}`) | ||||
| } | ||||
|  | ||||
| /** @desc 查询参数列表 */ | ||||
| export function listOptionDict(query: OptionQuery) { | ||||
|   return http.get<LabelValueState[]>(`${BASE_URL}/dict/option`, query) | ||||
| /** @desc 查询系统配置参数 */ | ||||
| export function listSiteOptionDict() { | ||||
|   return http.get<LabelValueState[]>(`${BASE_URL}/dict/option/site`) | ||||
| } | ||||
|  | ||||
| /** @desc 上传文件 */ | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| import { defineStore } from 'pinia' | ||||
| import { computed, reactive, toRefs } from 'vue' | ||||
| import { generate, getRgbStr } from '@arco-design/color' | ||||
| import { type BasicConfig, listOptionDict } from '@/apis' | ||||
| import { type BasicConfig, listSiteOptionDict } from '@/apis' | ||||
| import defaultSettings from '@/config/setting.json' | ||||
|  | ||||
| const storeSetup = () => { | ||||
| @@ -58,9 +58,7 @@ const storeSetup = () => { | ||||
|   const siteConfig = reactive({}) as BasicConfig | ||||
|   // 初始化系统配置 | ||||
|   const initSiteConfig = () => { | ||||
|     listOptionDict({ | ||||
|       category: 'SITE', | ||||
|     }).then((res) => { | ||||
|     listSiteOptionDict().then((res) => { | ||||
|       const resMap = new Map() | ||||
|       res.data.forEach((item) => { | ||||
|         resMap.set(item.label, item.value) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user