diff --git a/src/schema/ssl.js b/src/schema/ssl.js index 5735e0f..37139ae 100644 --- a/src/schema/ssl.js +++ b/src/schema/ssl.js @@ -1,4 +1,4 @@ -const sniFormat = { pattern: /^[A-Za-z\d_\-./]+$/, message: '域名仅包含字母、数字、_ - . /' } +const sniFormat = { pattern: /^[A-Za-z\d_\-./*]+$/, message: '域名仅包含字母、数字、_ - . / *' } export const schemaSsl = { sni: [sniFormat], diff --git a/src/views/router/operate.vue b/src/views/router/operate.vue index ac0ac9a..393c496 100644 --- a/src/views/router/operate.vue +++ b/src/views/router/operate.vue @@ -149,19 +149,25 @@ export default { const getUpstreamNameList = async () => { let { code, data: dataList, msg } = await $upstreamNameList() + let tmpList = ref([]) + + tmpList.value.push({ + res_id: '', + name: '请选择' + }) + if (code != 0) { message.error(msg) } else { - let tmpList = ref([]) dataList.forEach(item => { tmpList.value.push({ res_id: item.res_id, name: item.name }) }) - - data.upstreamList = tmpList } + + data.upstreamList = tmpList } // 获取详情 const getInfo = async (serviceResId, resId) => {