Commit 7537a966 authored by zhengke's avatar zhengke

修复支付bug

parent 798f2bc5
......@@ -270,9 +270,7 @@ const redicetTo = (path:string)=>{
path
})
}
if(router.currentRoute.value.params.firm&&router.currentRoute.value.params.firm==1) {
delete router.currentRoute.value.params['firm']
createEnterpriseHandler()
}
</script>
......
......@@ -33,6 +33,7 @@ import OrderService from "@/services/OrderService";
import { ElLoading, ElMessage } from "element-plus";
import { onMounted, ref } from "vue";
import { useUserStore } from "@/store";
import { useRouter } from "vue-router";
const props = defineProps({
orderId: {
......@@ -50,6 +51,7 @@ const enterpriseRef = ref()
const groupName = ref('')
const errorMsg = ref('')
const loading = ref(false)
const router = useRouter();
const validator = ()=>{
if(groupName.value=='') errorMsg.value='请填写你的团队/企业名称'
......@@ -77,7 +79,13 @@ const changeUserInfo = (userInfo:any)=>{
})
setTimeout(() => {
useUser.setNewUserInfo(userInfo)
location.reload()
if(router.currentRoute.value.params.firm&&router.currentRoute.value.params.firm==1) {
emit('close')
router.push({
path:`/space`
})
}else location.reload()
}, 1000);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment