Explorar o código

fix:图表来源宽度限制

chenlei hai 3 meses
pai
achega
841358b964
Modificáronse 2 ficheiros con 5 adicións e 2 borrados
  1. 4 1
      src/views/chartShow/index.vue
  2. 1 1
      src/views/chartShow/previewHT.vue

+ 4 - 1
src/views/chartShow/index.vue

@@ -57,7 +57,7 @@
     <div class="bootom-source">
 
       <!-- 自定义来源 -->
-      <div>
+      <div class="source-box">
         <div class="chart-source text_oneLine" 
           v-if="chartInfo.SourcesFrom&&JSON.parse(chartInfo.SourcesFrom).isShow"
           :style="`
@@ -246,4 +246,7 @@ export default defineComponent({
 </script>
 <style scoped lang="less">
 @import './index.less';
+.source-box {
+  max-width: 50%;
+}
 </style>

+ 1 - 1
src/views/chartShow/previewHT.vue

@@ -30,7 +30,7 @@ const getChartInfo = async (type = '') => {
 
   loading.value = true;
   try {
-    const { Data } = await ChartApi.getChart({
+    const { Data } = await ChartApi.chartDetail({
       UniqueCode: code.value || '',
     });
     loading.value = false;