| 123456789101112131415161718192021222324252627282930313233343536 |
- /* 自动生成的文本数据头文件 */
- /* 源文件: index.js */
- /* 文件大小: 417 字节 */
- /* 生成时间: 2025-09-16 05:47:25 */
- /* 编码: utf-8 */
- #ifndef P_INDEX_JS_H
- #define P_INDEX_JS_H
- #include <stddef.h>
- // 文本数据(UTF-8编码)
- const char *p_index_js =
- "export function getApiBaseUrl (){\n"
- " const { protocol, hostname, port } = window.location;\n"
-
- " // 开发环境特殊处理\n"
- " if (hostname === 'localhost' || hostname === '127.0.0.1') {\n"
- " return 'http://localhost:8084/pdu'; // 开发服务器地址\n"
- " }\n"
-
- " // 生产环境使用当前域名\n"
- " return port\n"
- " ? `${protocol}//${hostname}:${port}/pdu`\n"
- " : `${protocol}//${hostname}/pdu`;\n"
- "}\n"
-
- ;
- // 文本数据大小(包括null终止符)
- const size_t p_index_js_size = 418;
- // 文本长度(字符数)
- const size_t p_index_js_length = 367;
- #endif /* P_INDEX_JS_H */
|