^ 由于是操作后实时保存,所以切换文件时无需保存

This commit is contained in:
maxmon 2021-06-09 00:29:12 +08:00
parent 2720a024ae
commit cb76b4f682
1 changed files with 0 additions and 2 deletions

View File

@ -272,8 +272,6 @@ export default {
*/ */
setNowText: function (newFile) { setNowText: function (newFile) {
const that = this const that = this
const isSaved = that.save()
if (!isSaved) return false
window.isLoadingNowText = Date.now() window.isLoadingNowText = Date.now()
that.nowFile = newFile that.nowFile = newFile
that.nowText = that.textDic[newFile] that.nowText = that.textDic[newFile]