|
@@ -31,9 +31,13 @@ const LayoutHeader = (props) => {
|
|
|
};
|
|
|
|
|
|
const fetchNoticeList = async (id?: number, isRead?: number) => {
|
|
|
+ const baseUrl = import.meta.env.MODE === 'development'
|
|
|
+ ? '/notification'
|
|
|
+ : import.meta.env.VITE_NOTIFICATION_URL;
|
|
|
+
|
|
|
const res = await axios.get(
|
|
|
- `/notification/bazb/getMsgList${id ? `?msgId=${id}` : ""}${
|
|
|
- isRead !== undefined ? `${id ? "&" : "?"}isRead=${isRead}` : ""
|
|
|
+ `${baseUrl}/bazb/getMsgList${id ? `?msgId=${id}` : ""}${
|
|
|
+ isRead !== undefined ? `${id ? '&' : '?'}isRead=${isRead}` : ""
|
|
|
}`
|
|
|
);
|
|
|
if (res?.data?.data?.list?.data) {
|