feat: 初始化 Cool-Admin (Node.js) 后端与 Arco Design Pro (React) 后台管理框架

这个提交包含在:
wikiboss
2026-09-20 16:59:17 +08:00
父节点 cdfb198c03
当前提交 de3cf8b870
共有 394 个文件被更改,包括 50575 次插入 和 634 次删除

查看文件

@@ -0,0 +1,14 @@
/*
* getAbsoluteFSPath
* @return {string} When run in NodeJS env, returns the absolute path to the current directory
* When run outside of NodeJS, will return an error message
*/
const getAbsoluteFSPath = function () {
// detect whether we are running in a browser or nodejs
if (typeof module !== "undefined" && module.exports) {
return require("path").resolve(__dirname)
}
throw new Error('getAbsoluteFSPath can only be called within a Nodejs environment');
}
module.exports = getAbsoluteFSPath