updated api endpoint

This commit is contained in:
Marvin Zhang
2021-11-20 17:54:57 +08:00
parent 68a5c6b87d
commit 907897f288
2 changed files with 3 additions and 2 deletions

View File

@@ -7,6 +7,9 @@
<link href="<%= BASE_URL %>favicon.ico" rel="icon">
<link href="font-awesome.min.css" rel="stylesheet">
<title><%= htmlWebpackPlugin.options.title %></title>
<script>
window.VUE_APP_API_BASE_URL = '<%= VUE_APP_API_BASE_URL %>'
</script>
<script src="/js/vue3-sfc-loader.js"></script>
<style>
#loading-placeholder {

View File

@@ -2,7 +2,5 @@ import 'crawlab-ui/dist/crawlab-ui.css';
import {createApp} from 'crawlab-ui';
(async function () {
// @ts-ignore
window.VUE_APP_API_BASE_URL = process.env.VUE_APP_API_BASE_URL;
await createApp();
})();