File tree Expand file tree Collapse file tree 6 files changed +26
-565
lines changed
components/infinite-scroll Expand file tree Collapse file tree 6 files changed +26
-565
lines changed Original file line number Diff line number Diff line change 1212 </div >
1313</template >
1414<script setup lang="ts">
15- import { ref , computed } from ' vue'
15+ import { ref , computed , watch } from ' vue'
1616
1717defineOptions ({ name: ' InfiniteScroll' })
1818const props = defineProps ({
@@ -47,6 +47,14 @@ const props = defineProps({
4747const emit = defineEmits ([' update:current_page' , ' load' ])
4848const current = ref (props .current_page )
4949
50+ watch (
51+ () => props .current_page ,
52+ (val ) => {
53+ if (val === 1 ) {
54+ current .value = 1
55+ }
56+ }
57+ )
5058const noMore = computed (
5159 () =>
5260 props .size > 0 && props .size === props .total && props .total > props .page_size && ! props .loading
Original file line number Diff line number Diff line change @@ -12,13 +12,6 @@ const applicationRouter = {
1212 name : 'application' ,
1313 component : ( ) => import ( '@/views/application/index.vue' )
1414 } ,
15- {
16- path : '/application/create' ,
17- name : 'CreateApplication' ,
18- meta : { activeMenu : '/application' } ,
19- component : ( ) => import ( '@/views/application/CreateAndSetting.vue' ) ,
20- hidden : true
21- } ,
2215 {
2316 path : '/application/:id/:type' ,
2417 name : 'ApplicationDetail' ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const datasetRouter = {
1212 component : ( ) => import ( '@/views/dataset/index.vue' )
1313 } ,
1414 {
15- path : '/dataset/:type' , // create 或者 upload
15+ path : '/dataset/:type' , // upload
1616 name : 'UploadDocumentDataset' ,
1717 meta : { activeMenu : '/dataset' } ,
1818 component : ( ) => import ( '@/views/dataset/UploadDocumentDataset.vue' ) ,
Original file line number Diff line number Diff line change 252252 <AppAvatar v-else class =" mr-8 avatar-blue" shape =" square" :size =" 32" >
253253 <img src =" @/assets/icon_document.svg" style =" width : 58% " alt =" " />
254254 </AppAvatar >
255- <auto-tooltip
256- :content =" relatedObject(datasetList, item, 'id')?.name"
257- style =" width : 80% "
255+ <span
256+ class =" ellipsis cursor"
257+ :title =" relatedObject(datasetList, item, 'id')?.name"
258+ >
259+ {{ relatedObject(datasetList, item, 'id')?.name }}</span
258260 >
259- {{ relatedObject(datasetList, item, 'id')?.name }}
260- </auto-tooltip >
261261 </div >
262262 <el-button text @click =" removeDataset(item)" >
263263 <el-icon >
326326 <AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
327327 </el-tooltip> -->
328328 </div >
329- <el-switch size =" small" v-model =" applicationForm.stt_model_enable" @change =" sttModelEnableChange" />
329+ <el-switch
330+ size =" small"
331+ v-model =" applicationForm.stt_model_enable"
332+ @change =" sttModelEnableChange"
333+ />
330334 </div >
331335 </template >
332336 <el-select
406410 <el-icon class =" mr-4" ><Setting /></el-icon >
407411 设置
408412 </el-button >
409- <el-switch size =" small" v-model =" applicationForm.tts_model_enable" @change =" ttsModelEnableChange" />
413+ <el-switch
414+ size =" small"
415+ v-model =" applicationForm.tts_model_enable"
416+ @change =" ttsModelEnableChange"
417+ />
410418 </div >
411419 </div >
412420 </template >
You can’t perform that action at this time.
0 commit comments