mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
fix: vditor error
This commit is contained in:
parent
e33fc10f00
commit
82000ee5f2
@ -21,11 +21,11 @@ export class PluginFieldMarkdownVditorServer extends Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async copyVditorDist() {
|
async copyVditorDist() {
|
||||||
const vditor = path.dirname(require.resolve('vditor'));
|
|
||||||
const dist = path.resolve(__dirname, '../../dist/client/vditor/dist');
|
const dist = path.resolve(__dirname, '../../dist/client/vditor/dist');
|
||||||
if (await fs.exists(dist)) {
|
if (await fs.exists(dist)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const vditor = path.dirname(require.resolve('vditor'));
|
||||||
await fs.copy(vditor, dist);
|
await fs.copy(vditor, dist);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user