dream-num / univer

Univer is an open-source productivity tool dev kit helping you integrate spreadsheets, docs and slides into your applications.
https://univer.ai
Apache License 2.0
6.7k stars 581 forks source link

[Bug] After destroying the workbook instance and then creating a new instance, you will not be able to create a new sheet. #2624

Open qingnianz opened 3 months ago

qingnianz commented 3 months ago

在您提交此问题之前,您是否检查了以下内容?

受影响的包和版本

0.1.16

复现链接

demo地址:https://github.com/qingnianz/univer-demo.git 复现视频:

https://github.com/dream-num/univer/assets/41188824/27bde0b5-6c90-435a-9ad2-445a1d79e3c5

预期行为

销毁sheet实例后新创建的实例应该正常切换左下角的sheet tab

实际行为

销毁sheet实例后新创建的实例无法正常切换左下角的sheet tab

运行环境

Chrome

系统信息

System: OS: macOS 14.5 CPU: (10) arm64 Apple M2 Pro Memory: 2.46 GB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.7.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 10.1.0 - /opt/homebrew/bin/npm pnpm: 8.8.0 - ~/Library/pnpm/pnpm Browsers: Chrome: 126.0.6478.126 Safari: 17.5

univer-bot[bot] commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] 销毁工作簿实例后再创建新实例将无法新建sheet

Title: [Bug] After destroying the workbook instance and then creating a new instance, you will not be able to create a new sheet.


Before you submitted this question, did you check the following?

Affected packages and versions

0.1.16

Recurrence link

Demo address: https://github.com/qingnianz/univer-demo.git Reproduction video:

https://github.com/dream-num/univer/assets/41188824/27bde0b5-6c90-435a-9ad2-445a1d79e3c5

Expected behavior

After destroying the sheet instance, the newly created instance should switch the sheet tab in the lower left corner normally.

Actual behavior

After destroying the sheet instance, the newly created instance cannot switch the sheet tab in the lower left corner normally.

Running environment

Chrome

system message

System: OS: macOS 14.5 CPU: (10) arm64 Apple M2 Pro Memory: 2.46 GB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.7.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 10.1.0 - /opt/homebrew/bin/npm pnpm: 8.8.0 - ~/Library/pnpm/pnpm Browsers: Chrome: 126.0.6478.126 Safari: 17.5