|
@@ -23,7 +23,7 @@
|
|
|
<strong style="flex-shrink: 0;">source: <em> {{sourceName}}弘则研究</em></strong>
|
|
|
<ul class="right-action" @click.stop>
|
|
|
<li @click="copyUrl" class="copy" v-if="isShare"><i class="el-icon-share"/>分享</li>
|
|
|
- <li @click="refreshChart"><i class="el-icon-refresh"/>刷新</li>
|
|
|
+ <li @click="refreshChart" v-if="code"><i class="el-icon-refresh"/>刷新</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -121,6 +121,12 @@ export default defineComponent({
|
|
|
|
|
|
/* 获取图表数据信息 */
|
|
|
const getChartInfo = async (type='') => {
|
|
|
+
|
|
|
+ if(!code.value) {
|
|
|
+ haveData.value = false;
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
loading.value = true;
|
|
|
try {
|
|
|
const { Data } = await ChartApi.getChart({
|