|
@@ -1,15 +1,21 @@
|
|
<!DOCTYPE html>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<html lang="en">
|
|
- <head>
|
|
|
|
- <meta charset="UTF-8" />
|
|
|
|
- <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 type="module" crossorigin src="/plugin/rule/assets/index.1986eaa5.js"></script>
|
|
|
|
- <link rel="stylesheet" href="/plugin/rule/assets/index.8f2f0176.css">
|
|
|
|
- </head>
|
|
|
|
- <body>
|
|
|
|
- <div id="app"></div>
|
|
|
|
-
|
|
|
|
- </body>
|
|
|
|
-</html>
|
|
|
|
|
|
+<head>
|
|
|
|
+ <meta charset="UTF-8" />
|
|
|
|
+ <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>
|
|
|
|
+ // 获取配置文件中的 服务地址,定义为全局变量
|
|
|
|
+ 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>
|