We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e580d97 commit 76c580cCopy full SHA for 76c580c
1 file changed
packages/plugins/robot/src/Main.vue
@@ -121,7 +121,7 @@ export default {
121
},
122
emits: ['close-chat'],
123
setup() {
124
- const { initData, isBlock, isSaved, clearCurrentState } = useCanvas()
+ const { initData, clearCurrentState } = useCanvas()
125
const AIModelOptions = getAIModelOptions()
126
const robotVisible = ref(false)
127
const avatarUrl = ref('')
@@ -283,15 +283,6 @@ export default {
283
})
284
285
const sendContent = async (content, isModel) => {
286
- if (!isSaved() && !pageSettingState.isNew) {
287
- Notify({
288
- type: 'error',
289
- message: `当前${isBlock() ? '区块' : '页面'}尚未保存,请保存后再试!`,
290
- position: 'top-right',
291
- duration: 5000
292
- })
293
- return
294
- }
295
if (inProcesing.value) {
296
Notify({
297
type: 'error',
0 commit comments