|
|
@@ -113,8 +113,10 @@
|
|
|
|
|
|
onLoad(options) {
|
|
|
console.log('options', options);
|
|
|
- this.customType = options.customType
|
|
|
- if (this.customType) {
|
|
|
+
|
|
|
+ if (!cacheManager.get('xuexi-shuxue')) {
|
|
|
+ console.log('没有缓存');
|
|
|
+ this.customType = options.customType
|
|
|
this.chanpinId = options.chanpinId
|
|
|
this.danyuanId = options.danyuanId
|
|
|
this.banbenId = options.banbenId
|
|
|
@@ -122,14 +124,13 @@
|
|
|
this.loadDataFromApi()
|
|
|
} else {
|
|
|
console.log('使用缓存');
|
|
|
-
|
|
|
this.chanpinId = cacheManager.get('auth').chanpinId
|
|
|
this.danyuanId = cacheManager.get('auth').danyuanId
|
|
|
this.banbenId = cacheManager.get('auth').banbenId
|
|
|
//用于返回
|
|
|
this.dengjiId = cacheManager.get('auth').dengjiId
|
|
|
- this.cacheManagerLocal = cacheManager.get('xuexi-shuxue') ||{}
|
|
|
- // 使用缓存
|
|
|
+ this.cacheManagerLocal = cacheManager.get('xuexi-shuxue') || {}
|
|
|
+ // 使用缓存A@
|
|
|
this.danyuanInfo = this.cacheManagerLocal
|
|
|
this.curProcess = this.cacheManagerLocal.curProcess
|
|
|
this.fontDanyuanId = this.cacheManagerLocal.fontDanyuanId
|