Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(plugin-manage\plugin-info.vue): 修复在 slider 内切换到 ip访问保护 插件时参数错误的问题 #104

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@
</template>

<script setup lang="ts">
import { computed, ref, toRefs } from 'vue';
import {
computed,
ref,
toRefs,
} from 'vue';
import { useI18n } from 'vue-i18n';
import { getPluginForm, creatPlugin, updatePluginConfig } from '@/http';
import { Message } from 'bkui-vue';
Expand Down Expand Up @@ -463,6 +467,12 @@ const getSchemaFormData = async (code: string) => {
// type_name: '频率控制',
// };

// 当使用 select 组件切换到 ip 访问保护插件时,schemaFormData 没有被正确地设置
// 需要手动重置 schemaFormData
if (code === 'bk-ip-restriction') {
schemaFormData.value = { whitelist: '' };
}

isPluginFormLoading.value = false;
infoNotes.value = res.notes;
formConfig.value = res.config;
Expand Down
Loading