when the vue route mode is history mode, the links and covers shared by Wechat authorization are failed, does anyone know?
as shown in figure
when the vue route mode is history mode, the links and covers shared by Wechat authorization are failed, does anyone know?
as shown in figure
this is a long-lasting pit, so I can't climb out.
the temporary solution is to refresh the pages that need to be shared again, and then call Wechat SDK. Add the query parameter needrefresh=1
to the url of the page to be shared, then determine whether to refresh the page according to the needrefresh
parameter, and remove the needrefresh
parameter when refreshing.
Previous: Vant Tab tab event custom parameters
...
how do I introduce .vue files into traditional pages? ...
how to understand the loading order of script tags? In the browser. ...
if it s HTML rendering, I know how to use it, but the project needs to use the elementUI framework, and a lot of things are packaged. filters: { statusFormat: function(value) { if( value == 1){ return ; } ...
the data given by the backend is as follows: data:[ { id:1, name:"", checked:true, children:[ { id:11, name:"", checked:true ...
WeChat Mini Programs uploads pictures to Aliyun oss, but the company s Aliyun address is changeable. Is there any good idea? do any bosses know ...
downloaded a React-resize-layout for layout, but found a problem during use: pan panMovepanEnd... ...
...
is working on a react project recently, which involves a problem of uploading images. Use formdata, but the API returns a newline character. I ve already passed the rules. Is there any great god to take a look at it? 3. 4. I would like to than...
after each login skip to the home page, part of the js becomes invalid. To solve this problem, I refresh the code once when I enter the home page as follows: home.vue mounted:function(){ location.reload() } but now the page is always refreshing...
A timestamp function is used on many pages HTML {{ scope.row.createTime|formatDate }} js import {formatDate} from @ assets js date.js filters:{ formatDate(time) { var date = new Date(time); return formatDate(date, yyy...
1. For the timestamp method found on the Internet, I put it separately in a js export function formatDate(timestamp) { var date = new Date(timestamp * 1000); 10*1000131000 Y = date.getFullYear() + - ; M = (date.getMon...
there is such a data at the front end: this.regions:[1,2]; this.citys:[ shanghai , chongqing ]; format required by backend: area:[ { regions:1, citys: shanghai }, { regions:2, citys: chongqing ...
one requirement is to call WeChat Pay in the h5 page of app. How to do that? what is the process? ...
I have played 0.x version before. Today I can see that it has been updated to 1.0! ( has a lot of convenient features, but the official documents can t find any instructions on how to change the theme. (in the old version, there is a function that can...
at present, the longitude and latitude can only be obtained by selecting the address of the drop-down box if I do not use the drop-down box to select the address that is typed by myself, how can I get the longitude and latitude of this address ...
it was like this at first " " <div v-for="item in list" @mouseover="hover()"> <span>{{item.icon}}< span> <span>{{item.text}}< span> <span v-show="false">< span>...
Page when I click OK, I will send the selected id to the background. HTML: <el-tree :data="data2" show-checkbox node-key="id" :default-expanded-keys="[1,4]" :default-checked-keys="[1,6]" :pr...
only main is introduced in homepage ...
problem description A text such as "my 123MediaTek 456 grandiose 789 ", take 123456789 out to form an array or other data type, then change the color of 123456789, and then put it back, can this function be realized? ...