解决首页不能展示新手引导的bug

This commit is contained in:
季圣华
2021-10-24 10:42:56 +08:00
parent 1b787788e5
commit 921b268d9f
2 changed files with 15 additions and 8 deletions

View File

@@ -665,10 +665,14 @@ export function sheet2blob (aoa, sheetName) {
export function handleIntroJs(module, cur_version) {
//每个页面设置不同的缓存变量名称不可以重复有新版本时更新cur_version
//有新版本更新时才出现一次引导页, 第二次进入进不再出现, 这里有缓存来判断
let introJsObj = introJs()
if(module !== 'indexChart') {
introJsObj = introJs('.ant-modal-cust-warp')
}
if (Vue.ls.get('intro_cache_' + module) === cur_version) {
return;
}
introJs(".ant-modal-cust-warp").setOptions({
introJsObj.setOptions({
prevLabel: '← 上一步',
nextLabel: '下一步 →',
doneLabel: '知道了',