Commit e92f6175 authored by shirlyn.guo's avatar shirlyn.guo 👌🏻

chore: 修改命名&个人空间搜索框placeholder修改

parent b247d162
......@@ -159,7 +159,6 @@ personal_space_module:
agent_module:
agent_list_module:
search_agent_placeholder: 'Please enter an application name or description'
agent_title: 'Application title'
large_model: 'Model name'
agent_id: 'Application ID'
......
......@@ -158,7 +158,6 @@ personal_space_module:
agent_module:
agent_list_module:
search_agent_placeholder: '请输入应用名称或描述'
agent_title: '应用标题'
large_model: '模型名称'
agent_id: '应用ID'
......
......@@ -158,7 +158,6 @@ personal_space_module:
agent_module:
agent_list_module:
search_agent_placeholder: '請輸入應用名稱或描述'
agent_title: '應用標題'
large_model: '模型名稱'
agent_id: '應用ID'
......
......@@ -14,7 +14,7 @@ import { router } from '@/router'
import searchEmptyImage from '@/assets/images/search-empty.png'
import applicationEmptyImage from '@/assets/images/application-empty.png'
interface mallCategory {
interface MallCategory {
id: number
categoryName: string
}
......@@ -31,7 +31,7 @@ const pagingInfo = ref<PaginationInfo>({
totalPages: 0,
totalRows: 0,
})
const mallCategoryList = ref<mallCategory[]>([])
const mallCategoryList = ref<MallCategory[]>([])
const cardContentWrapRef = useTemplateRef<HTMLDivElement>('cardContentWrapRef')
const isShowCarousel = ref(true)
const smooth = ref(false)
......@@ -116,7 +116,7 @@ function handleCollectOrCancelAgentApplication(id: number) {
function handleGetMallCategoryList() {
mallCategoryList.value.unshift({ id: 0, categoryName: t('applications_square_module.all_application_btn_text') })
fetchGetMallCategoryList<mallCategory[]>().then((res) => {
fetchGetMallCategoryList<MallCategory[]>().then((res) => {
if (res.code !== 0) return
mallCategoryList.value = [...mallCategoryList.value, ...res.data]
})
......
......@@ -212,7 +212,7 @@ const handleCardContentScrollDebounce = debounce(
</n-space>
<NInput
v-model:value="agentSearchInputValue"
:placeholder="t('personal_space_module.agent_module.agent_list_module.search_agent_placeholder')"
:placeholder="t('common_module.search')"
class="w-[256px]! h-[32px]!"
@keypress="handleEnterKeypress"
>
......
......@@ -6,7 +6,7 @@ import { Close, Help, Notes, CheckSmall } from '@icon-park/vue-next'
import { ref, watch } from 'vue'
import { useI18n } from 'vue-i18n'
interface mallCategory {
interface MallCategory {
id: number
categoryName: string
}
......@@ -29,7 +29,7 @@ const saleApplicationsId = ref(props.data.agentPublishId)
const isClassifyError = ref(false)
const applicationsClassify = ref<mallCategory[]>([])
const applicationsClassify = ref<MallCategory[]>([])
;(function () {
handleGetMallCategoryList()
......@@ -84,7 +84,7 @@ function handleIsCopySwitchUpdateValue(value: string) {
function handleGetMallCategoryList() {
fetchGetMallCategoryList().then((res) => {
if (res.code !== 0) return
applicationsClassify.value = res.data as mallCategory[]
applicationsClassify.value = res.data as MallCategory[]
})
}
</script>
......
......@@ -169,7 +169,6 @@ declare namespace I18n {
tab_module: {
agent_module: {
agent_list_module: {
search_agent_placeholder: string
agent_title: string
large_model: string
agent_id: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment