Merge pull request #550 from foisonocean/support-customize-baseurl
feat: support customize baseURL
This commit is contained in:
commit
c4150a4edf
2 changed files with 2 additions and 2 deletions
|
@ -13,6 +13,6 @@
|
|||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<div id="app" data-base-url="http://127.0.0.1:9090"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -160,7 +160,7 @@ export function updateCollapsibleIsOpen(
|
|||
}
|
||||
|
||||
const defaultClashAPIConfig = {
|
||||
baseURL: 'http://127.0.0.1:9090',
|
||||
baseURL: document.getElementById('app')?.getAttribute('data-base-url') ?? 'http://127.0.0.1:9090',
|
||||
secret: '',
|
||||
addedAt: 0,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue