const isWindows = typeof window !== "undefined" // windows环境
|
const isNode = typeof global !== "undefined" // node环境
|
const getServerJson = {
|
managePath: isWindows ? window.location.origin : "", // 当前域名
|
systemCode: "admin_platform", // 开发环境系统编码
|
manageContextPath: "/manage", // 接口上下文
|
localEncryptedKey: "platform cache key", // @/common/until/wsCache 加密使用的盐
|
context: "/sale-manage-web"
|
}
|
if (isWindows) {
|
window.getServerJson = getServerJson
|
} else if (isNode) {
|
module.exports = getServerJson
|
}
|