新增跳转逻辑判断
This commit is contained in:
parent
f64f44172e
commit
0f1a9d56e0
|
@ -118,6 +118,7 @@
|
|||
</template>
|
||||
<script setup>
|
||||
import { gongZuoZhuangTai } from '@/api/home.js'
|
||||
import { message } from 'ant-design-vue'
|
||||
import { ref, watch } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useStore } from 'vuex'
|
||||
|
@ -167,9 +168,17 @@
|
|||
const handleOk = (e) => {
|
||||
let snum = ref({})
|
||||
if (abilityToTypeFunctionData.value == '组件服务') {
|
||||
snum.value = {
|
||||
abilityToType: abilityToTypeFunctionData.value,
|
||||
componentTypeValue: componentTypeValue.value,
|
||||
if (!componentTypeValue.value || componentTypeValue.value == '') {
|
||||
message.error('请选择组件类型!')
|
||||
return
|
||||
} else if (componentTypeValue.value !== '智能算法') {
|
||||
message.error('功能开发中!')
|
||||
return
|
||||
} else {
|
||||
snum.value = {
|
||||
abilityToType: abilityToTypeFunctionData.value,
|
||||
componentTypeValue: componentTypeValue.value,
|
||||
}
|
||||
}
|
||||
} else {
|
||||
snum.value = {
|
||||
|
|
|
@ -229,6 +229,7 @@
|
|||
<script setup>
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { message } from 'ant-design-vue'
|
||||
// , reactive
|
||||
import { wodepage, undercarriage } from '@/api/personalCenter'
|
||||
import { getUserInfo } from '@/api/user'
|
||||
|
@ -280,9 +281,17 @@
|
|||
const handleOk = (e) => {
|
||||
let snum = ref({})
|
||||
if (abilityToTypeFunctionData.value == '组件服务') {
|
||||
snum.value = {
|
||||
abilityToType: abilityToTypeFunctionData.value,
|
||||
componentTypeValue: componentTypeValue.value,
|
||||
if (!componentTypeValue.value || componentTypeValue.value == '') {
|
||||
message.error('请选择组件类型!')
|
||||
return
|
||||
} else if (componentTypeValue.value !== '智能算法') {
|
||||
message.error('功能开发中!')
|
||||
return
|
||||
} else {
|
||||
snum.value = {
|
||||
abilityToType: abilityToTypeFunctionData.value,
|
||||
componentTypeValue: componentTypeValue.value,
|
||||
}
|
||||
}
|
||||
} else {
|
||||
snum.value = {
|
||||
|
|
Loading…
Reference in New Issue