mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +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() {
|
||||
const vditor = path.dirname(require.resolve('vditor'));
|
||||
const dist = path.resolve(__dirname, '../../dist/client/vditor/dist');
|
||||
if (await fs.exists(dist)) {
|
||||
return;
|
||||
}
|
||||
const vditor = path.dirname(require.resolve('vditor'));
|
||||
await fs.copy(vditor, dist);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user