refactor: axios methods and env

This commit is contained in:
xiaoxian521
2021-12-04 01:16:50 +08:00
parent a845d4f237
commit 11bf711838
25 changed files with 522 additions and 585 deletions

View File

@@ -1,11 +1,9 @@
<script setup lang="ts">
import { ref } from "vue";
import { loadEnv } from "@build/index";
const { VITE_PUBLIC_PATH } = loadEnv();
const url = ref(
process.env.NODE_ENV === "production"
? "/manages/html/button.html"
: "/html/button.html"
);
const url = ref(`${VITE_PUBLIC_PATH}html/button.html`);
</script>
<template>