Merge branch 'master' of https://codeup.aliyun.com/bsdtec/biz-pc-cloud
This commit is contained in:
commit
64dff29f1b
2 files changed
+21
-4
No files matched your search
+4
-4
@@ -8,17 +8,17 @@ VITE_OPEN = true
|
||||
ENV = 'development'
|
||||
|
||||
# ADMIN 服务地址
|
||||
# VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 测试线上
|
||||
VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 测试线上
|
||||
# VITE_ADMIN_PROXY_PATH = http://pjcloud.center.takin.cc/
|
||||
# VITE_ADMIN_PROXY_PATH = http://localhost:9999/
|
||||
VITE_ADMIN_PROXY_PATH = http://192.168.101.125:9999/ # 邓-本地
|
||||
# VITE_ADMIN_PROXY_PATH = http://192.168.101.125:9999/ # 邓-本地
|
||||
# VITE_ADMIN_PROXY_PATH = http://59.202.170.152:81/api # 正式环境线上
|
||||
|
||||
# 图片访问基础地址
|
||||
# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api/ # 测试线上
|
||||
VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api/ # 测试线上
|
||||
# VITE_IMAGE_BASE_PATH = http://pjcloud.center.takin.cc
|
||||
# VITE_IMAGE_BASE_PATH = http://localhost:9999
|
||||
VITE_IMAGE_BASE_PATH = http://192.168.101.125:9999 # 邓-本地
|
||||
# VITE_IMAGE_BASE_PATH = http://192.168.101.125:9999 # 邓-本地
|
||||
# VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api/ # 正式环境线上
|
||||
|
||||
# 代码生成服务地址
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { computed } from "vue"
|
||||
|
||||
const useComputed = (fn: Function) => {
|
||||
const map = new Map()
|
||||
|
||||
return (...args: any[]) => {
|
||||
const key = JSON.stringify(args)
|
||||
|
||||
if (map.has(key)) return map.get(key)
|
||||
|
||||
const comput = computed(() => fn(...args))
|
||||
map.set(key, comput)
|
||||
return comput
|
||||
}
|
||||
}
|
||||
|
||||
export default useComputed
|
||||
Reference in new issue
Block a user