20251222
This commit is contained in:
9
AdminPanel/src/utils/cep/path.ts
Normal file
9
AdminPanel/src/utils/cep/path.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { isNodeJSEnabled } from "./tool"
|
||||
console.error('isNodeJSEnabled()'+isNodeJSEnabled());
|
||||
|
||||
/**
|
||||
* cep_node 为ps内置的全局变量
|
||||
*/
|
||||
//@ts-ignore
|
||||
export const path = (isNodeJSEnabled() ? cep_node.require('path') : {}) as typeof import('path')
|
||||
|
||||
Reference in New Issue
Block a user