|
@@ -51,16 +51,12 @@ export default {
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
if (cardSize.value === 0) {
|
|
|
- if (openId) {
|
|
|
- queryPatientCards(openId)
|
|
|
- } else {
|
|
|
- const code = router.currentRoute.value.params.code
|
|
|
- getOpenId(code).then((res) => {
|
|
|
- Cookies.set('openId', res)
|
|
|
- localStorage.openId = res
|
|
|
- queryPatientCards(res)
|
|
|
- })
|
|
|
- }
|
|
|
+ const code = router.currentRoute.value.params.code
|
|
|
+ getOpenId(code).then((res) => {
|
|
|
+ Cookies.set('openId', res)
|
|
|
+ localStorage.openId = res
|
|
|
+ queryPatientCards(res)
|
|
|
+ })
|
|
|
} else {
|
|
|
toFirstTab()
|
|
|
}
|