Skip to content

Commit

Permalink
fix: 修复编辑demo未copy问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Aug 8, 2023
1 parent eb43786 commit e68eb1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/demo/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ import { ListParams, Info, listApi, delApi } from '@/api/demo';
import { useLocalesI18n } from '@/locales/i18n';
import { bookType } from '@/dict/book';
import add from './components/add.vue';
import { cloneDeep } from 'lodash-es';
let { t } = useLocalesI18n({}, [(locale: string) => import(`./lang/${locale}.json`), 'demo']);
const params = reactive(new ListParams());
const { loading, data, runAsync } = listApi();
Expand All @@ -96,7 +97,7 @@ const del = async (id: number) => {
const addOrUp = ref(false);
const info = ref<Required<Info>>();
const showAddOrUp = (row?: Required<Info>) => {
info.value = row;
info.value = cloneDeep(row);
addOrUp.value = true;
};
</script>

0 comments on commit e68eb1c

Please sign in to comment.