@@ -65,6 +65,14 @@ export const getPositionTreeClick = async (data) => {
})
}
+// 获取热门职位
+export const getHotPositionList = async (params) => {
+ return await request.get({
+ url: '/app-api/menduner/system/position/hot',
+ params
+ })
+}
+
// 获得职位信息
export const getPositionTreeData = async (params) => {
return await request.get({
@@ -6,10 +6,17 @@
</template>
<script setup>
+import { getHotPositionList } from '@/api/common/index'
import { ref } from 'vue';
defineOptions({ name:'personal-hotJobs-list'})
-const jobs = ref(['Java','PHP','Python','C#','.NET','GIS工程师','区块链工程师','测试', 'Python','C#','.NET'])
+// 获取行业树形
+let jobs = ref(null)
+const getTreeData = async () => {
+ const res = await getHotPositionList()
+ jobs.value = res || []
+getTreeData()
</script>
<style lang="scss" scoped>