formatter code

This commit is contained in:
lbw 2023-04-10 23:57:01 +08:00
parent dd7ea74da8
commit c2161148d6
5 changed files with 24 additions and 27 deletions

View File

@ -237,10 +237,10 @@ const getUserData = async (id) => {
const { data } = await getObj(id); const { data } = await getObj(id);
Object.assign(dataForm, data); Object.assign(dataForm, data);
if (data.roleList) { if (data.roleList) {
dataForm.role = data.roleList.map(item => item.roleId); dataForm.role = data.roleList.map((item) => item.roleId);
} }
if (data.postList) { if (data.postList) {
dataForm.post = data.postList.map(item => item.postId); dataForm.post = data.postList.map((item) => item.postId);
} }
} catch (err: any) { } catch (err: any) {
useMessage().error(err.msg); useMessage().error(err.msg);

View File

@ -8,7 +8,6 @@
</template> </template>
<script lang="ts" name="modelView" setup> <script lang="ts" name="modelView" setup>
import other from '/@/utils/other';
import { Session } from '/@/utils/storage'; import { Session } from '/@/utils/storage';
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const route = useRoute(); const route = useRoute();

View File

@ -6,7 +6,6 @@
</template> </template>
<script lang="ts" name="modelView" setup> <script lang="ts" name="modelView" setup>
import other from '/@/utils/other';
import { Session } from '/@/utils/storage'; import { Session } from '/@/utils/storage';
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const route = useRoute(); const route = useRoute();

View File

@ -351,7 +351,6 @@ const handleSave = async () => {
} }
}; };
const deleteMaterial = () => { const deleteMaterial = () => {
tempObj.value.replyArticles = []; tempObj.value.replyArticles = [];
tempObj.value.articleId = ''; tempObj.value.articleId = '';