whyour / qinglong

支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台(Timed task management platform supporting Python3, JavaScript, Shell, Typescript)
https://qinglong.online
Apache License 2.0
15.66k stars 2.91k forks source link

查看定时任务的脚本内容出错 #2362

Closed sulele89757 closed 3 months ago

sulele89757 commented 3 months ago

Qinglong version

2.17.4

Steps to reproduce

前提:有一些定时任务是没有脚本内容的。 image 重现步骤:

  1. 打开其他任意有脚本内容的定时任务,查看脚本 image
  2. 此时再次打开前提中提到的没有脚本内容的定时任务,查看脚本,会发现里面展示了步骤1中查看过的脚本内容 image

What is expected?

应该需要在查看脚本内容前,清空之前已加载的脚本。

What is actually happening?

加载脚本内容错误

System Info

System:
    OS: Linux 4.4 Alpine Linux
    CPU: (4) x64 Intel(R) Celeron(R) CPU  J1900  @ 1.99GHz
    Memory: 2.31 GB / 3.75 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 18.19.1 - /usr/bin/node
    npm: 9.6.6 - /usr/bin/npm
    pnpm: 8.3.1 - /usr/local/bin/pnpm

Any additional comments?

No response

whyour commented 3 months ago

2.17.5 已修复