diff --git a/src/stores/OrderStore.js b/src/stores/OrderStore.js index ed584df..3c73ef2 100644 --- a/src/stores/OrderStore.js +++ b/src/stores/OrderStore.js @@ -53,7 +53,7 @@ const useOrderStore = create((set, get) => ({ if (json.errcode === 0) { set(() => ({ orderList: json.result.map((order) => { return { ...order, key: order.COLI_ID } }), - })) + })) } else { throw new Error(json?.errmsg + ': ' + json.errcode) } diff --git a/src/views/AuthApp.jsx b/src/views/AuthApp.jsx index 370b371..5eda539 100644 --- a/src/views/AuthApp.jsx +++ b/src/views/AuthApp.jsx @@ -49,11 +49,13 @@ function AuthApp() { }, []) - let defaultPath = 'follow' + let defaultPath = '/order/follow' if (href !== '/') { const splitPath = href.split('/') - defaultPath = href + if (splitPath.length > 2) { + defaultPath = '/' + splitPath[1] + '/' + splitPath[2] + } } const {