修改一些ts的问题。
This commit is contained in:
		@@ -10,12 +10,12 @@
 | 
			
		||||
<template>
 | 
			
		||||
    <div class="archievement-wrapper">
 | 
			
		||||
        <span>总业绩</span>
 | 
			
		||||
        <span>¥ {{ archivement_count }}</span>
 | 
			
		||||
        <span>¥ {{ archivement_count }}</span>
 | 
			
		||||
        <div id="chartWrapper"></div>
 | 
			
		||||
    </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
<script lang="ts">
 | 
			
		||||
import { reactive, computed, onMounted } from "vue";
 | 
			
		||||
import * as echarts from "echarts";
 | 
			
		||||
 | 
			
		||||
@@ -35,11 +35,10 @@ export default {
 | 
			
		||||
        //设置图表
 | 
			
		||||
        const initCharts = () => 
 | 
			
		||||
        {
 | 
			
		||||
            var chartDom = document.getElementById('chartWrapper');
 | 
			
		||||
            var myChart = echarts.init(chartDom);
 | 
			
		||||
            var option;
 | 
			
		||||
 | 
			
		||||
            option = {
 | 
			
		||||
            const chartDom = document.getElementById('chartWrapper');
 | 
			
		||||
            //@ts-ignore
 | 
			
		||||
            const myChart = echarts.init((chartDom));
 | 
			
		||||
            const option = {
 | 
			
		||||
                xAxis: {
 | 
			
		||||
                    type: 'category',
 | 
			
		||||
                    data: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二",],
 | 
			
		||||
@@ -58,7 +57,7 @@ export default {
 | 
			
		||||
 | 
			
		||||
            option && myChart.setOption(option);
 | 
			
		||||
 | 
			
		||||
            window.onresize = function() 
 | 
			
		||||
            window.onresize = function () 
 | 
			
		||||
            {
 | 
			
		||||
                //自适应大小
 | 
			
		||||
                myChart.resize();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user