fix: 修改bug
This commit is contained in:
parent
a8338a5981
commit
bee1c13d94
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue