|
@@ -5,17 +5,19 @@
|
|
|
<link rel="icon" href="/plugin/rule/favicon.ico" />
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
<title>Sagoo Rule Editor</title>
|
|
|
+ <script src="/config.js"></script>
|
|
|
<script>
|
|
|
- // 获取配置文件中的 服务地址,定义为全局变量
|
|
|
- fetch('/config.json').then(function (res) { return res.json() }).then(function (config) {
|
|
|
- window.env = config.rule
|
|
|
- })
|
|
|
+ window.env = window.allEnv.rule
|
|
|
+ // // 获取配置文件中的 服务地址,定义为全局变量
|
|
|
+ // fetch('/config.json').then(function (res) { return res.json() }).then(function (config) {
|
|
|
+ // window.env = config.rule
|
|
|
+ // })
|
|
|
</script>
|
|
|
<script type="module" crossorigin src="/plugin/rule/assets/index.64d25905.js"></script>
|
|
|
<link rel="stylesheet" href="/plugin/rule/assets/index.fcb91b3d.css">
|
|
|
</head>
|
|
|
<body>
|
|
|
<div id="app"></div>
|
|
|
-
|
|
|
+
|
|
|
</body>
|
|
|
</html>
|