mirror of https://github.com/halo-dev/halo
chore: update the base url of the plugin resources
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/3445/head
parent
f130c8769e
commit
20612642e8
|
@ -117,7 +117,7 @@ async function loadPluginModules() {
|
||||||
|
|
||||||
if (entry) {
|
if (entry) {
|
||||||
const { load } = useScriptTag(
|
const { load } = useScriptTag(
|
||||||
`http://localhost:8090${plugin.status?.entry}`
|
`${import.meta.env.VITE_API_URL}${plugin.status?.entry}`
|
||||||
);
|
);
|
||||||
await load();
|
await load();
|
||||||
const pluginModule = window[plugin.metadata.name];
|
const pluginModule = window[plugin.metadata.name];
|
||||||
|
@ -131,7 +131,7 @@ async function loadPluginModules() {
|
||||||
|
|
||||||
if (stylesheet) {
|
if (stylesheet) {
|
||||||
try {
|
try {
|
||||||
await loadStyle(`http://localhost:8090${stylesheet}`);
|
await loadStyle(`${import.meta.env.VITE_API_URL}${stylesheet}`);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,7 +151,7 @@ onMounted(() => {
|
||||||
<iframe
|
<iframe
|
||||||
:class="iframeClasses"
|
:class="iframeClasses"
|
||||||
class="border-none transition-all duration-300"
|
class="border-none transition-all duration-300"
|
||||||
src="http://localhost:8090"
|
src="https://halo.run"
|
||||||
></iframe>
|
></iframe>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -41,7 +41,7 @@ const handleLogin = async () => {
|
||||||
try {
|
try {
|
||||||
loginForm.value.logging = true;
|
loginForm.value.logging = true;
|
||||||
|
|
||||||
await fetch("http://localhost:8090/login", {
|
await fetch(`${import.meta.env.VITE_API_URL}/login`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/x-www-form-urlencoded",
|
"Content-Type": "application/x-www-form-urlencoded",
|
||||||
|
|
Loading…
Reference in New Issue