|
@@ -121,12 +121,12 @@
|
|
|
<a-radio value="2">研究</a-radio>
|
|
|
</a-radio-group>
|
|
|
<div class="ds-box">
|
|
|
- <div @click="onChange('0')" :class="{active: dsChecked === false}">
|
|
|
- <i class="iconfont icon-tongyi"></i>
|
|
|
- </div>
|
|
|
<div @click="onChange('1')" :class="{active: dsChecked === true}">
|
|
|
<i class="iconfont icon-deepsee"></i>
|
|
|
</div>
|
|
|
+ <div @click="onChange('0')" :class="{active: dsChecked === false}">
|
|
|
+ <i class="iconfont icon-tongyi"></i>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -516,7 +516,7 @@ const props = defineProps({
|
|
|
});
|
|
|
|
|
|
const answerType = ref('0');
|
|
|
-const dsChecked = ref(false);
|
|
|
+const dsChecked = ref(true);
|
|
|
const scope = ref('net');
|
|
|
watch(
|
|
|
() => router.currentRoute.value,
|
|
@@ -524,11 +524,19 @@ watch(
|
|
|
const { query } = value;
|
|
|
if (query.q) {
|
|
|
ask(decodeURIComponent(query.q));
|
|
|
- console.log(decodeURIComponent(query.q));
|
|
|
answerType.value = query.type || '0';
|
|
|
scope.value = query.scope || 'net';
|
|
|
- var ds = query.ds;
|
|
|
dsHintTxt.value = '';
|
|
|
+ }
|
|
|
+ }
|
|
|
+);
|
|
|
+
|
|
|
+watch(
|
|
|
+ () => router.currentRoute.value,
|
|
|
+ (value) => {
|
|
|
+ const { query } = value;
|
|
|
+ if (query.q) {
|
|
|
+ var ds = query.ds;
|
|
|
if (ds && ds == '1') {
|
|
|
ds = true;
|
|
|
} else {
|
|
@@ -536,6 +544,9 @@ watch(
|
|
|
}
|
|
|
dsChecked.value = ds;
|
|
|
}
|
|
|
+ },
|
|
|
+ {
|
|
|
+ immediate: true
|
|
|
}
|
|
|
);
|
|
|
|
|
@@ -2106,12 +2117,12 @@ defineExpose({ search, changeActiveTab, stopAI });
|
|
|
background: #fff;
|
|
|
&:nth-child(1) {
|
|
|
.iconfont {
|
|
|
- color: #605BEC;
|
|
|
+ color: #4f6bfe;
|
|
|
}
|
|
|
}
|
|
|
&:nth-child(2) {
|
|
|
.iconfont {
|
|
|
- color: #4f6bfe;
|
|
|
+ color: #605BEC;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -2121,12 +2132,12 @@ defineExpose({ search, changeActiveTab, stopAI });
|
|
|
}
|
|
|
&:nth-child(1) {
|
|
|
.iconfont {
|
|
|
- font-size: 22px;
|
|
|
+ font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
&:nth-child(2) {
|
|
|
.iconfont {
|
|
|
- font-size: 16px;
|
|
|
+ font-size: 22px;
|
|
|
}
|
|
|
}
|
|
|
}
|