一、修改测试环境配置文件
在根目录下.env.development中,修改VUE_APP_BASE_API地址,代码如下:
VUE_APP_BASE_API = 'http://tpsocketapi.yuanlongsoftware.cn'
二、修改user.js的私钥配置
在根目录下src文件夹中store文件夹下modules文件夹下user.js中,修改privateKey参数值,具体如下:
// 私钥Key
const privateKey = 'MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAMc7v0yMGT58ttPL\n' +
'TyCU52lyT6xT7TONpPOcYdYR/HNiv+32KBRBJXRDACp/U3U6d8Sja0DQK3VtIFPN\n' +
'pXvn4vDx9WbAW/6sfNPGst3lWMuLK/lCEOzQACZT5IXB56kzR65LQJOIeC+RCMPg\n' +
'oSHBi53b8XGeEwZ7nvsevJ6PpvN1AgMBAAECgYAOOi4HAVosJCvKJBKaeQeteARI\n' +
'ghXGQK8u1lQGPXKRqtOZ4qIqEBzkmIRChKUpEevLlv/puPPhhtFwKpdOqdiCzAAF\n' +
'sl3rht7B8/3aTXkl09rswTPfLgkbdm27REbrYNmiHGQ4450a1BaOKBJ5/bqHp+ui\n' +
'HBZxJQo6r+Nc3lkwYQJBAOg5TuWHcgvr03jOJMXkc4GyjuldKVArTHhaIgdScvZd\n' +
'djKNt47PxSzZjUQiIYEZFdrbzbCm2+jZoew0dXd98y8CQQDbob5zy3mMT8CzbcmR\n' +
'6zFBAlpd61GeAre/5/HXWGdDNHNIDSewr/Cr4FJBcHJ0toDeVWt9zXdm013lLqDn\n' +
'sSqbAkBChTABddQIcCwqfbpw6Wjg7Roc5O/RpCWKkB8RQ9/kjI8wGgJLqV6M42Cg\n' +
'9LnuNhZZk/8OrC1wPO8yLzC64txHAkAR7C0CfgQ5Mvjiq37bbXnjeDGvoFhUsJwW\n' +
'CPNvQ0OJ9GnD427tuC3HmNKdjHOKmqoBeq7+4RlxRqZO4XM39PkpAkAE4NCexB7Z\n' +
'ScilfRMvUfpSi+ZACxugpRHHfk7vvbqWTS46/2SsN3eVXEuAELWdOm/BYylMJZTL\n' +
'3Emvp3ciGM/U'
三、修改请求里面的公钥
在根目录下src文件夹下utils文件夹下request.js中,修改publicKey参数值,具体如下:
// 公钥key
const publicKey = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHO79MjBk+fLbTy08glOdpck+s\n' +
'U+0zjaTznGHWEfxzYr/t9igUQSV0QwAqf1N1OnfEo2tA0Ct1bSBTzaV75+Lw8fVm\n' +
'wFv+rHzTxrLd5VjLiyv5QhDs0AAmU+SFweepM0euS0CTiHgvkQjD4KEhwYud2/Fx\n' +
'nhMGe577Hryej6bzdQIDAQAB'
四、提前说明
明天起将重点开发一下websocket应用服务。