mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2026-02-04 07:53:11 +00:00
Compare commits
3 Commits
1b25332a2f
...
d2efa19107
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2efa19107 | ||
|
|
8151de7cde | ||
|
|
f71ccfc30e |
@ -1060,7 +1060,7 @@ export default {
|
|||||||
|
|
||||||
if (result.success && result.url) {
|
if (result.success && result.url) {
|
||||||
// 构建考试页面URL
|
// 构建考试页面URL
|
||||||
const examUrl = `https://es.zerocat.dev/exam/?configUrl=${encodeURIComponent(result.url)}`;
|
const examUrl = `https://es.examaware.tech/exam/?configUrl=${encodeURIComponent(result.url)}`;
|
||||||
|
|
||||||
// 在新窗口中打开
|
// 在新窗口中打开
|
||||||
window.open(examUrl, '_blank');
|
window.open(examUrl, '_blank');
|
||||||
|
|||||||
@ -32,7 +32,7 @@ export default {
|
|||||||
enabled: false,
|
enabled: false,
|
||||||
refreshInterval: 60,
|
refreshInterval: 60,
|
||||||
kvConfig: {
|
kvConfig: {
|
||||||
sources: ['hitokoto'],
|
sources: ['zhaoyu'],
|
||||||
sensitiveWords: []
|
sensitiveWords: []
|
||||||
},
|
},
|
||||||
sentence: '',
|
sentence: '',
|
||||||
@ -76,7 +76,7 @@ export default {
|
|||||||
|
|
||||||
if (data) {
|
if (data) {
|
||||||
this.kvConfig = {
|
this.kvConfig = {
|
||||||
sources: Array.isArray(data.sources) && data.sources.length > 0 ? data.sources : ['hitokoto'],
|
sources: Array.isArray(data.sources) && data.sources.length > 0 ? data.sources : ['zhaoyu'],
|
||||||
sensitiveWords: data.sensitiveWords ? data.sensitiveWords.split(/[,,]/).map(w => w.trim()).filter(w => w) : [],
|
sensitiveWords: data.sensitiveWords ? data.sensitiveWords.split(/[,,]/).map(w => w.trim()).filter(w => w) : [],
|
||||||
jinrishiciToken: data.jinrishiciToken
|
jinrishiciToken: data.jinrishiciToken
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,6 +41,10 @@
|
|||||||
@update:model-value="saveKvSettings"
|
@update:model-value="saveKvSettings"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="text-caption text-orange mt-2">
|
||||||
|
<v-icon size="x-small" color="orange" class="mr-1">mdi-alert</v-icon>
|
||||||
|
一言(Hitokoto)数据源已收到关于存在负面内容的大量反馈,请用户谨慎启用。
|
||||||
|
</div>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
|
|
||||||
<v-list-item v-if="kvConfig.sources.includes('jinrishici')">
|
<v-list-item v-if="kvConfig.sources.includes('jinrishici')">
|
||||||
@ -94,7 +98,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
kvConfig: {
|
kvConfig: {
|
||||||
sources: ['hitokoto'],
|
sources: ['zhaoyu'],
|
||||||
sensitiveWords: '',
|
sensitiveWords: '',
|
||||||
jinrishiciToken: null
|
jinrishiciToken: null
|
||||||
},
|
},
|
||||||
@ -116,7 +120,7 @@ export default {
|
|||||||
|
|
||||||
if (data) {
|
if (data) {
|
||||||
this.kvConfig = {
|
this.kvConfig = {
|
||||||
sources: Array.isArray(data.sources) ? data.sources : ['hitokoto'],
|
sources: Array.isArray(data.sources) ? data.sources : ['zhaoyu'],
|
||||||
sensitiveWords: data.sensitiveWords || '',
|
sensitiveWords: data.sensitiveWords || '',
|
||||||
jinrishiciToken: data.jinrishiciToken
|
jinrishiciToken: data.jinrishiciToken
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user