fix: 授权类型bugs

pull/21/MERGE
xingyu 2023-06-08 11:20:04 +08:00
parent 76e3105184
commit f00fec9287
3 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# 资源公共路径,需要以 / 开头和结尾
VITE_PUBLIC_PATH = /admin-ui-vben/
VITE_PUBLIC_PATH = /
# 是否删除Console.log
VITE_DROP_CONSOLE = true
@ -13,12 +13,12 @@ VITE_BUILD_COMPRESS = 'gzip'
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
# 基础页面地址,例如 swagger 等页面
VITE_GLOB_BASE_URL = "http://localhost:48080"
VITE_GLOB_BASE_URL = "http://api-dashboard.yudao.iocoder.cn"
# 接口地址,如果没有跨域问题,直接在这里配置即可
VITE_GLOB_API_URL = http://localhost:48080/admin-api
VITE_GLOB_API_URL = http://api-dashboard.yudao.iocoder.cn/admin-api
# 文件上传地址 可以由nginx做转发或者直接写实际地址
VITE_GLOB_UPLOAD_URL = http://localhost:48080/admin-api/infra/file/upload
VITE_GLOB_UPLOAD_URL = http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload
# 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换
VITE_GLOB_API_URL_PREFIX =

View File

@ -15,6 +15,7 @@ export interface DictDataType {
dictType: string
label: string
value: string | number | boolean
key?: any
colorType: string
cssClass: string
}
@ -57,6 +58,7 @@ export function getDictOptions(dictType: string, valueType?: 'string' | 'number'
dictOptions.forEach((dict: DictDataType) => {
dictOption.push({
...dict,
key: dict.value,
value:
valueType === 'string'
? dict.value + ''

View File

@ -153,7 +153,7 @@ export const formSchema: FormSchema[] = [
required: true,
component: 'Select',
componentProps: {
options: getDictOptions(DICT_TYPE.SYSTEM_OAUTH2_GRANT_TYPE),
options: getDictOptions(DICT_TYPE.SYSTEM_OAUTH2_GRANT_TYPE, 'string'),
mode: 'multiple'
}
},