parent
416a0427cf
commit
5cde67672b
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* @Descripttion:
|
||||||
|
* @version: 1.0.0
|
||||||
|
* @Author: LyMy
|
||||||
|
* @Date: 2025-04-12 12:54:52
|
||||||
|
* @LastEditors: LyMy
|
||||||
|
* @LastEditTime: 2025-04-12 14:14:19
|
||||||
|
* @FilePath: \go_fish_web\src\api\ranking\ranking.js
|
||||||
|
*/
|
||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 我的分数
|
||||||
|
*/
|
||||||
|
export function myRanking () {
|
||||||
|
return request.get('/Rank/score')
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 全球分数
|
||||||
|
*/
|
||||||
|
export function globalRanking () {
|
||||||
|
return request.get('/Rank/rankings')
|
||||||
|
}
|
||||||
@ -1,21 +1,12 @@
|
|||||||
/*
|
|
||||||
* @Descripttion:
|
|
||||||
* @version: 1.0.0
|
|
||||||
* @Author: LyMy
|
|
||||||
* @Date: 2025-04-11 15:43:49
|
|
||||||
* @LastEditors: LyMy
|
|
||||||
* @LastEditTime: 2025-04-11 16:07:34
|
|
||||||
* @FilePath: \fish_game\vite.config.js
|
|
||||||
*/
|
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
import path from 'path' // 需要导入 path 模块
|
import path from 'path'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': path.resolve(__dirname, 'src') // 加这行
|
'@': path.resolve(__dirname, 'src')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue