|
@@ -13,7 +13,7 @@ const selectedNature = ref(null);
|
|
|
const selectedRounds = ref(0);
|
|
const selectedRounds = ref(0);
|
|
|
|
|
|
|
|
const sceneType = ref("")
|
|
const sceneType = ref("")
|
|
|
-const naturesOptions = ref([]);
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
const rolelist = ref([]);
|
|
const rolelist = ref([]);
|
|
|
const roleOptions = JSON.parse(localStorage.getItem('role')).roleOption
|
|
const roleOptions = JSON.parse(localStorage.getItem('role')).roleOption
|
|
@@ -24,17 +24,13 @@ const roundsOptions = [
|
|
|
{ text: 10, value: 10 },
|
|
{ text: 10, value: 10 },
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
-const mappings = {
|
|
|
|
|
- XIAOWEI: [
|
|
|
|
|
|
|
+const naturesOptions =[
|
|
|
{ text: "固执己见,不愿妥协", value: "固执己见,不愿妥协" },
|
|
{ text: "固执己见,不愿妥协", value: "固执己见,不愿妥协" },
|
|
|
{ text: "细心周到,考虑周全", value: "细心周到,考虑周全" },
|
|
{ text: "细心周到,考虑周全", value: "细心周到,考虑周全" },
|
|
|
{ text: "易怒暴躁,难以沟通", value: "易怒暴躁,难以沟通" },
|
|
{ text: "易怒暴躁,难以沟通", value: "易怒暴躁,难以沟通" },
|
|
|
{ text: "幽默风趣,气氛活跃", value: "幽默风趣,气氛活跃" },
|
|
{ text: "幽默风趣,气氛活跃", value: "幽默风趣,气氛活跃" },
|
|
|
{ text: "自私冷漠,缺乏同理", value: "自私冷漠,缺乏同理" },
|
|
{ text: "自私冷漠,缺乏同理", value: "自私冷漠,缺乏同理" },
|
|
|
-],
|
|
|
|
|
-XIAOWEI_RONGZI: [{ text: "谨慎理性", value: "谨慎理性" }],
|
|
|
|
|
-DEFAULT:[{ text: "无", value: "无" }]
|
|
|
|
|
-};
|
|
|
|
|
|
|
+]
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleSelectNature = (option) => {
|
|
const handleSelectNature = (option) => {
|
|
@@ -74,7 +70,7 @@ onMounted(() => {
|
|
|
const role = JSON.parse(localStorage.getItem('role'))
|
|
const role = JSON.parse(localStorage.getItem('role'))
|
|
|
rolelist.value = role
|
|
rolelist.value = role
|
|
|
sceneType.value = role.sceneType
|
|
sceneType.value = role.sceneType
|
|
|
- naturesOptions.value = mappings[sceneType.value] || mappings.DEFAULT;
|
|
|
|
|
|
|
+
|
|
|
localStorage.removeItem("chatHistory");
|
|
localStorage.removeItem("chatHistory");
|
|
|
localStorage.removeItem("status");
|
|
localStorage.removeItem("status");
|
|
|
});
|
|
});
|
|
@@ -162,7 +158,7 @@ onMounted(() => {
|
|
|
.p_content {
|
|
.p_content {
|
|
|
margin-top: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- max-height: 8rem;
|
|
|
|
|
|
|
+ max-height: 8.7rem;
|
|
|
overflow: scroll;
|
|
overflow: scroll;
|
|
|
}
|
|
}
|
|
|
|
|
|