49419e23 by lxs

通过config.js配置appKey

1 parent 864664a1
......@@ -33,8 +33,8 @@ const useUserStore = defineStore(
function getToken(data, state) {
data.platformGuid = "7f16f697aec111ef8656fa163e60becd";
data.userType = 2;
// data.appKey = '672c2c38e4b0cac8732a6106';
data.appKey = system.__APP_CONFIG__.appKey;
data.appKey = '672c2c38e4b0cac8732a6106';
// data.appKey = system.__APP_CONFIG__.appKey;
data.validateUri = location.origin == 'http://localhost:9000' ? 'http://localhost:9000/' : location.origin + '/';
return getTokenPromise.value = getTokenByCode(data).then((res: any) => {
getTokenPromise.value = null;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!