fix: 修改bug

This commit is contained in:
100011797 2023-07-10 09:43:00 +08:00
parent a8338a5981
commit bee1c13d94
2 changed files with 3 additions and 1 deletions

View File

@ -104,6 +104,7 @@ const updateIframeStyle = () => {
) as HTMLIFrameElement; ) as HTMLIFrameElement;
iframe.onload = () => { iframe.onload = () => {
const currentUrl = iframe?.contentWindow?.location?.search || ''; const currentUrl = iframe?.contentWindow?.location?.search || '';
console.log(currentUrl)
let authCode = ''; let authCode = '';
if (currentUrl.startsWith('?')) { if (currentUrl.startsWith('?')) {
currentUrl currentUrl

View File

@ -96,7 +96,7 @@
<j-col :span="12"> <j-col :span="12">
<j-form-item name="roleIdList" label="角色" class="flex" <j-form-item name="roleIdList" label="角色" class="flex"
:rules="[ :rules="[
{ required: true, message: '请选择角色' }, { required: form.data.username !== 'admin', message: '请选择角色' },
]" ]"
> >
<j-select <j-select
@ -105,6 +105,7 @@
style="width: calc(100% - 40px)" style="width: calc(100% - 40px)"
placeholder="请选择角色" placeholder="请选择角色"
:options="form.roleOptions" :options="form.roleOptions"
:disabled="form.data.username === 'admin'"
></j-select> ></j-select>
<PermissionButton <PermissionButton