<template>
    <div v-if=isType('0')></div>  
</template>

computed:{
  isType() {
    // 需要return一个fn并接收参数
    return function(type) {
      let is = true
      if(type==='1'){
        return false
      }
      return is
    }
  },
}

uuai
0 声望0 粉丝