Optimize: img url path

This commit is contained in:
Lazy 2023-12-02 01:24:59 +08:00
parent a93a3d40d8
commit 360db90365

View File

@ -36,7 +36,7 @@ const beforeUpload: UploadProps["beforeUpload"] = async (file) => {
}
});
if (state.value) {
imgSrc.value = `${window.location.origin}/upload_files/${state.value}`;
imgSrc.value = `/upload_files/${state.value}`;
setMetaValue("image", imgSrc.value);
percentComplete.value = 0;
message.success(t("TXT_CODE_773f36a0"));