no message
Showing
1 changed file
with
7 additions
and
3 deletions
| ... | @@ -53,16 +53,20 @@ import { ref } from 'vue' | ... | @@ -53,16 +53,20 @@ import { ref } from 'vue' |
| 53 | import {getInvoiceByActiveId} from "@/apiPc/booking" | 53 | import {getInvoiceByActiveId} from "@/apiPc/booking" |
| 54 | import {getCurrentInstance} from "@vue/runtime-core" | 54 | import {getCurrentInstance} from "@vue/runtime-core" |
| 55 | import {useStorage} from "@vueuse/core/index"; | 55 | import {useStorage} from "@vueuse/core/index"; |
| 56 | import useUserStore from "@/store/modules/user"; | ||
| 56 | const language= useStorage('language',0) | 57 | const language= useStorage('language',0) |
| 57 | const {proxy} = getCurrentInstance() | 58 | const {proxy} = getCurrentInstance() |
| 58 | const list = ref([]) | 59 | const list = ref([]) |
| 60 | const user = useUserStore().user | ||
| 59 | const query = ref({ | 61 | const query = ref({ |
| 60 | activeId:'', | 62 | createById: user.userId |
| 61 | createById:'', | ||
| 62 | venueId:'' | ||
| 63 | }) | 63 | }) |
| 64 | getList() | 64 | getList() |
| 65 | function getList() { | 65 | function getList() { |
| 66 | if(!user){ | ||
| 67 | useUserStore().setReLogin() | ||
| 68 | return | ||
| 69 | } | ||
| 66 | getInvoiceByActiveId(query.value).then(res=>{ | 70 | getInvoiceByActiveId(query.value).then(res=>{ |
| 67 | list.value = res.rows | 71 | list.value = res.rows |
| 68 | }) | 72 | }) | ... | ... |
-
Please register or sign in to post a comment