Browse Source

feat: 安装应用自动填写名称 (#1238)

pull/1241/head
zhengkunwang223 1 year ago committed by GitHub
parent
commit
b6758ff92d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      frontend/src/views/app-store/apps/index.vue
  2. 1
      frontend/src/views/app-store/detail/install/index.vue

8
frontend/src/views/app-store/apps/index.vue

@ -107,7 +107,7 @@
<script lang="ts" setup>
import { App } from '@/api/interface/app';
import { onMounted, reactive, ref } from 'vue';
import { GetAppListUpdate, GetAppTags, SearchApp, SyncApp } from '@/api/modules/app';
import { GetAppTags, SearchApp, SyncApp } from '@/api/modules/app';
import i18n from '@/lang';
import Detail from '../detail/index.vue';
import router from '@/routers';
@ -171,11 +171,6 @@ const sync = () => {
});
};
const getAppListUpdate = async () => {
const res = await GetAppListUpdate();
canUpdate.value = res.data.canUpdate;
};
const changeTag = (key: string) => {
req.tags = [];
activeTag.value = key;
@ -191,7 +186,6 @@ const searchByName = (name: string) => {
};
onMounted(() => {
getAppListUpdate();
search(req);
});
</script>

1
frontend/src/views/app-store/detail/install/index.vue

@ -174,6 +174,7 @@ const resetForm = () => {
const acceptParams = (props: InstallRrops): void => {
installData.value = props;
resetForm();
req.name = props.app.key;
open.value = true;
};

Loading…
Cancel
Save