Through the function to pass the value of the parameter, how to get this value when the operation specifies the object?

first look at the code, which is a function in vue:

    delChatConfirm(index) {
      this.$Modal.confirm({
        title: "",
        onOk: () => {
          delete this.$store.state.messages.index
          // indexindex
        }
      });
    },

I want to send the value of index passed above to the index of the line above. For example, when the value of index passed in 123 , the line of
delete operation looks like this:

delete this.$store.state.messages.123

is there any way to do this?

Aug.09,2021

delete this.$store.state.messages[index]
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-1b3e6b6-2c403.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-1b3e6b6-2c403.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?