mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-14 19:23:28 +08:00
chore: fix warnings and errors in demo (#839)
* chore: suppress warning in demo * chore: prevent multiple intializations of esbuild-wasm in demo HMR
This commit is contained in:
@ -78,7 +78,11 @@ const transformedCode = ref("");
|
||||
const transformErrors = ref([]);
|
||||
|
||||
onMounted(async () => {
|
||||
await initialize({ wasmURL });
|
||||
// prevent multiple initializations during HMR
|
||||
if (!window.__esbuildInitialized) {
|
||||
await initialize({ wasmURL });
|
||||
window.__esbuildInitialized = true;
|
||||
}
|
||||
|
||||
initializing.value = false;
|
||||
|
||||
|
@ -20,10 +20,8 @@ export default {
|
||||
},
|
||||
shape: `path://${d}`,
|
||||
label: {
|
||||
normal: {
|
||||
formatter() {
|
||||
return "";
|
||||
},
|
||||
formatter() {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
itemStyle: {
|
||||
|
@ -27,6 +27,7 @@ export const useScoreStore = defineStore("store", () => {
|
||||
fontWeight: 300,
|
||||
},
|
||||
radar: {
|
||||
splitNumber: 4,
|
||||
indicator: scores.value.map(({ name, max }, index) => {
|
||||
if (index === activeIndex) {
|
||||
return { name, max, color: "goldenrod" };
|
||||
|
Reference in New Issue
Block a user