Commit 7537a966 authored by zhengke's avatar zhengke

修复支付bug

parent 798f2bc5
...@@ -270,9 +270,7 @@ const redicetTo = (path:string)=>{ ...@@ -270,9 +270,7 @@ const redicetTo = (path:string)=>{
path path
}) })
} }
if(router.currentRoute.value.params.firm&&router.currentRoute.value.params.firm==1) { if(router.currentRoute.value.params.firm&&router.currentRoute.value.params.firm==1) {
delete router.currentRoute.value.params['firm']
createEnterpriseHandler() createEnterpriseHandler()
} }
</script> </script>
......
...@@ -33,6 +33,7 @@ import OrderService from "@/services/OrderService"; ...@@ -33,6 +33,7 @@ import OrderService from "@/services/OrderService";
import { ElLoading, ElMessage } from "element-plus"; import { ElLoading, ElMessage } from "element-plus";
import { onMounted, ref } from "vue"; import { onMounted, ref } from "vue";
import { useUserStore } from "@/store"; import { useUserStore } from "@/store";
import { useRouter } from "vue-router";
const props = defineProps({ const props = defineProps({
orderId: { orderId: {
...@@ -50,6 +51,7 @@ const enterpriseRef = ref() ...@@ -50,6 +51,7 @@ const enterpriseRef = ref()
const groupName = ref('') const groupName = ref('')
const errorMsg = ref('') const errorMsg = ref('')
const loading = ref(false) const loading = ref(false)
const router = useRouter();
const validator = ()=>{ const validator = ()=>{
if(groupName.value=='') errorMsg.value='请填写你的团队/企业名称' if(groupName.value=='') errorMsg.value='请填写你的团队/企业名称'
...@@ -77,7 +79,13 @@ const changeUserInfo = (userInfo:any)=>{ ...@@ -77,7 +79,13 @@ const changeUserInfo = (userInfo:any)=>{
}) })
setTimeout(() => { setTimeout(() => {
useUser.setNewUserInfo(userInfo) 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); }, 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