mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 05:40:20 +08:00
formatter code
This commit is contained in:
parent
dd7ea74da8
commit
c2161148d6
@ -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);
|
||||||
|
@ -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();
|
||||||
|
@ -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();
|
||||||
|
@ -351,7 +351,6 @@ const handleSave = async () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const deleteMaterial = () => {
|
const deleteMaterial = () => {
|
||||||
tempObj.value.replyArticles = [];
|
tempObj.value.replyArticles = [];
|
||||||
tempObj.value.articleId = '';
|
tempObj.value.articleId = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user