Explorar el Código

feat: 语言更新接口

From-wh hace 2 años
padre
commit
22a394f335
Se han modificado 1 ficheros con 10 adiciones y 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
+	})
+}
+
 /**
  * 
  * 小程序绑定手机号