使用vue3后的BUG???
const state = reactive({
searchHistory: [],
});
const setToHistory = (word) => {
state.searchHistory.unshift(word);
}state.searchHistory 已经改变值了为null,而不是数组
const state = reactive({
searchHistory: [],
});
const setToHistory = (word) => {
state.searchHistory.unshift(word);
}state.searchHistory 已经改变值了为null,而不是数组
2020-10-31
举报