Closed
Description
Version
3.2.23
Reproduction link
Steps to reproduce
- step 1
yarn && yarn dev
What is expected?
Class and text values are the same.
What is actually happening?
<template>
<div :class="color">
{{ color }}
</div>
</template>
<script lang="ts" setup>
import { computed } from "vue";
console.log(process.client);
const color = computed(() => {
return process.client ? "black" : "red";
});
</script>
<style>
.red {
color: red;
}
.black {
color: black;
}
</style>