xucaiqin

Results 9 comments of xucaiqin

i have the same question! nacos 2.0.3 + spring-cloud-starter-gateway 3.1.1 spring-boot 2.6.7 ![image](https://user-images.githubusercontent.com/44385477/172818549-81ca2a4d-29ff-4148-929f-910eaf9c56ad.png)

因为在template的模板中使用方法渲染,会触发vue两个阶段的声明周期函数,分别是在beforeMount 和mounted中间会执行一次。以及beforeUpdate 和 updated中间会执行一次

> 怎么解决啊 因为这是template的默认渲染规则,避免不了。只要是在template中,使用方法的方式进行渲染,就会存在两次调用。 我的解决方案是:将需要在template进行optionapi方法调用,进行渲染的接口数据,比如字典。让这个接口提前在setup中调用,然后把数据返回值保存起来,在需要用的地方,只是获取这个数据,而不是在调用接口,然后进行数据渲染。

> 怎么解决啊 这里提前调用,然后缓存返回的字典值,加了个value字段存储。 ![image](https://github.com/user-attachments/assets/9024a993-8e46-4ce2-b157-76559fa87adf) ![image](https://github.com/user-attachments/assets/fd91edd0-0126-415b-9f58-641a82be290b) 这里直接取数据。 ![image](https://github.com/user-attachments/assets/97e3e539-07d7-4792-94c0-070086be36d8) 还有一种方案,就是用回老方法,不用tsx。

> Can you share a very short version of a script that produces this error? If it doesn't rely on external components, such as RTSP servers, that would be helpful....

> > Can you share a very short version of a script that produces this error? If it doesn't rely on external components, such as RTSP servers, that would be...

> FfmpegOutput i can use which para to make FfmpegOutput save a mp4 file?

> 例如,您可以尝试`output = FfmpegOutput("test.mp4")`。 ok ,i understand it

Here's the full code main.py ``` import signal import time import sys import RPi.GPIO as GPIO from manager.device.index import DeviceManager from manager.wireless.index import WirelessManager from device.bluetooth.index import BluetoothDevice from manager.protocol.mqtt.index...