Skip to content

Commit 76c580c

Browse files
hexqichilingling
authored andcommitted
chore: remove ai chat save confirm (opentiny#1588)
1 parent e580d97 commit 76c580c

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

packages/plugins/robot/src/Main.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default {
121121
},
122122
emits: ['close-chat'],
123123
setup() {
124-
const { initData, isBlock, isSaved, clearCurrentState } = useCanvas()
124+
const { initData, clearCurrentState } = useCanvas()
125125
const AIModelOptions = getAIModelOptions()
126126
const robotVisible = ref(false)
127127
const avatarUrl = ref('')
@@ -283,15 +283,6 @@ export default {
283283
})
284284
285285
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-
}
295286
if (inProcesing.value) {
296287
Notify({
297288
type: 'error',

0 commit comments

Comments
 (0)