parent
71ead16745
commit
345da1f3f3
@ -1,12 +1,12 @@
|
||||
NODE_ENV = development
|
||||
|
||||
VITE_ENV = stage
|
||||
VITE_ENV = development
|
||||
|
||||
VITE_APP_BASE_URL = https://utel.zltest.com.tw
|
||||
|
||||
VITE_APP_LINE_LIFF_ID = 1656948609-xMp7dWAz
|
||||
|
||||
VITE_APP_SEND_URL = https://liff.line.me/1656948609-BYr8Nynp
|
||||
VITE_APP_SEND_URL = https://liff.line.me/1656948609-xMp7dWAz
|
||||
|
||||
VITE_APP_API_URL = https://utel.zltest.com.tw/appapi/v1
|
||||
|
||||
|
||||
@ -1,12 +1,5 @@
|
||||
import { useCardStore } from '@/store/card.js';
|
||||
import { getCardData } from '@/api/card.js';
|
||||
// import { useCardStore } from '@/store/card.js';
|
||||
// import { getCardData } from '@/api/card.js';
|
||||
|
||||
export const initStore = async (pinia) => {
|
||||
const cardStore = useCardStore();
|
||||
|
||||
let res = await getCardData();
|
||||
if (res.code === 200) {
|
||||
cardStore.cusCard = res.data.cus_card;
|
||||
cardStore.vipCard = res.data.vip_card;
|
||||
}
|
||||
};
|
||||
// export const initStore = async (pinia) => {
|
||||
// };
|
||||
|
||||
Loading…
Reference in new issue