yangfeng
2023-07-07 e34c2e67208bd63e320a4504ce8cf40a83ba7cbb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}