chore: 升级vite4

This commit is contained in:
xiaoxian521
2022-12-19 11:58:49 +08:00
parent d36d5b09c5
commit 2e2c306097
7 changed files with 336 additions and 326 deletions

View File

@@ -1,12 +1,11 @@
<script setup lang="ts">
import { ref } from "vue";
import { loadEnv } from "@build/index";
defineOptions({
name: "Button"
});
const { VITE_PUBLIC_PATH } = loadEnv();
const { VITE_PUBLIC_PATH } = import.meta.env;
const url = ref(`${VITE_PUBLIC_PATH}html/button.html`);
</script>