发布路径不以/结尾资源会加载失败 ---

pull/1164/head
JEECG 2024-03-22 14:29:14 +08:00
parent 68a26826c7
commit 33cb844792
1 changed files with 6 additions and 1 deletions

View File

@ -118,7 +118,12 @@
const initOptions = computed(() => {
const { height, options, toolbar, plugins, menubar } = props;
const publicPath = import.meta.env.VITE_PUBLIC_PATH || '/';
let publicPath = import.meta.env.VITE_PUBLIC_PATH || '/';
// update-begin--author:liaozhiyang---date:20240320---forQQYUN-8571/
if (!publicPath.endsWith('/')) {
publicPath += '/';
}
// update-end--author:liaozhiyang---date:20240320---forQQYUN-8571/
return {
selector: `#${unref(tinymceId)}`,
height,