fix.
This commit is contained in:
@@ -25,12 +25,11 @@ const data = computed(() => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const options = ref({
|
const options = {
|
||||||
responsive: true,
|
|
||||||
plugins: {
|
plugins: {
|
||||||
title: { text: "提交结果的比例", display: true, font: { size: 20 } },
|
title: { text: "提交结果的比例", display: true, font: { size: 20 } },
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ const data = computed(() => ({
|
|||||||
],
|
],
|
||||||
}))
|
}))
|
||||||
|
|
||||||
const options = ref({
|
const options = {
|
||||||
plugins: {
|
plugins: {
|
||||||
title: {
|
title: {
|
||||||
text: "全校前十名的用户(不包括超管)",
|
text: "全校前十名的用户(不包括超管)",
|
||||||
@@ -76,7 +76,7 @@ const options = ref({
|
|||||||
font: { size: 20 },
|
font: { size: 20 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<Bar class="chart" :data="data" :options="options" />
|
<Bar class="chart" :data="data" :options="options" />
|
||||||
|
|||||||
Reference in New Issue
Block a user