mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
refactor(stock): 注释掉无用的 ticker 相关代码
- 注释掉了 stock.vue 文件中的 ticker 相关代码 - 包括 ticker 的初始化、使用和清除代码 - 此修改可能是为了优化性能或避免不必要的操作
This commit is contained in:
parent
5d6ecdc21b
commit
3217338966
@ -64,7 +64,7 @@ const notify = useNotification()
|
||||
const dialog = useDialog()
|
||||
const stocks=ref([])
|
||||
const results=ref({})
|
||||
const ticker=ref({})
|
||||
//const ticker=ref({})
|
||||
const stockList=ref([])
|
||||
const followList=ref([])
|
||||
const options=ref([])
|
||||
@ -148,12 +148,12 @@ onMounted(() => {
|
||||
message.loading("Loading...")
|
||||
// console.log(`the component is now mounted.`)
|
||||
|
||||
ticker.value=setInterval(() => {
|
||||
if(isTradingTime()){
|
||||
//monitor()
|
||||
data.fenshiURL='http://image.sinajs.cn/newchart/min/n/'+data.code+'.gif'+"?t="+Date.now()
|
||||
}
|
||||
}, 3500)
|
||||
// ticker.value=setInterval(() => {
|
||||
// if(isTradingTime()){
|
||||
// //monitor()
|
||||
// //data.fenshiURL='http://image.sinajs.cn/newchart/min/n/'+data.code+'.gif'+"?t="+Date.now()
|
||||
// }
|
||||
// }, 3500)
|
||||
|
||||
GetVersionInfo().then((res) => {
|
||||
icon.value = res.icon;
|
||||
@ -183,7 +183,7 @@ onMounted(() => {
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
// console.log(`the component is now unmounted.`)
|
||||
clearInterval(ticker.value)
|
||||
//clearInterval(ticker.value)
|
||||
ws.value.close()
|
||||
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user