Explorar o código

feat: 语言更新接口

From-wh %!s(int64=2) %!d(string=hai) anos
pai
achega
22a394f335
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      template/uni-app/api/user.js

+ 10 - 0
template/uni-app/api/user.js

@@ -698,6 +698,16 @@ export function getLangJson() {
 	})
 }
 
+/**
+ * 获取多语言是否切换
+ */
+
+export function getLangVersion() {
+	return request.get('lang_version', {}, {
+		noAuth: true
+	})
+}
+
 /**
  * 
  * 小程序绑定手机号