Commit c0e12a02 by 胡悦

修改图片地址问题

1 parent 0494a6a4
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 11:37:11
* @LastEditors: huyue
* @LastEditTime: 2024-07-30 17:36:15
* @LastEditTime: 2024-07-30 17:53:15
*/
/** 三个数字加一个逗号 */
const numAddSymbol = (val: number | string | undefined) => {
......@@ -12,7 +12,7 @@ const numAddSymbol = (val: number | string | undefined) => {
// 获取图片
const getImageUrl = (name: any) => {
return new URL(`../../public/images/` + name + ".png", import.meta.url).href;
return new URL(`/images/` + name + ".png", import.meta.url).href;
};
export {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!