About the use of beforeRemove, a new attribute of Tabs in iview3.1.0

problem description

in the newly released iview3.1.0, the tab component has added an attribute of beforeRemove to prevent the tag from being closed. The official statement is as follows

clipboard.png

PromisebeforeRemove
clipboard.png

May.27,2021

:before-remove='beforeRemove'

beforeRemove(index){
      console.log(index)
      return new Promise(function(resolve, reject) {
              //resolve('');
              //reject('');//
      })
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e460c9-44b81.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e460c9-44b81.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?