How can I use the data in data as the value of a variable in Vue?

how can I use the data in data as the value of a variable in

Vue?

  data() {
    fetch_data: {ram: 16}
    ...
    select_extra_add_ram: [
      fetch_data.ram * 1, 
      fetch_data.ram * 2, 
      fetch_data.ram * 3
    ],
  }
    

this cannot be used. Excuse me, how can I use the data in data as the basis for other data?

Mar.04,2021

computed find out.

computed: {
  select_extra_add_ram() {
    return [
      this.fetch_data.ram * 1,
      this.fetch_data.ram * 2,
      this.fetch_data.ram * 3
    ]
  }
}
Menu